From 55e9c9b78d3925e624ea0b02020005f736ceb6e5 Mon Sep 17 00:00:00 2001 From: Nils Caspar Date: Tue, 9 Jul 2013 11:11:37 +0200 Subject: [PATCH] Fix compatibility with Ruby > 1.9 --- init.rb | 2 +- lib/redmine_cas.rb | 2 +- lib/redmine_cas/account_controller_patch.rb | 2 +- lib/redmine_cas/application_controller_patch.rb | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/init.rb b/init.rb index 3a91781..79701de 100644 --- a/init.rb +++ b/init.rb @@ -24,4 +24,4 @@ Redmine::Plugin.register :redmine_cas do ActionDispatch::Callbacks.before do RedmineCAS.setup! end -end \ No newline at end of file +end diff --git a/lib/redmine_cas.rb b/lib/redmine_cas.rb index 801de0e..392a5ea 100644 --- a/lib/redmine_cas.rb +++ b/lib/redmine_cas.rb @@ -37,4 +37,4 @@ module RedmineCAS end attrs end -end \ No newline at end of file +end diff --git a/lib/redmine_cas/account_controller_patch.rb b/lib/redmine_cas/account_controller_patch.rb index 5146bdc..e6b32f0 100644 --- a/lib/redmine_cas/account_controller_patch.rb +++ b/lib/redmine_cas/account_controller_patch.rb @@ -17,4 +17,4 @@ module RedmineCAS end end end -end \ No newline at end of file +end diff --git a/lib/redmine_cas/application_controller_patch.rb b/lib/redmine_cas/application_controller_patch.rb index bc22f66..4ce8a0d 100644 --- a/lib/redmine_cas/application_controller_patch.rb +++ b/lib/redmine_cas/application_controller_patch.rb @@ -38,7 +38,7 @@ module RedmineCAS else self.logged_user = user end - redirect_to url_for(params.merge(ticket: nil)) + redirect_to url_for(params.merge(:ticket => nil)) else # CASClient called redirect_to end @@ -53,4 +53,4 @@ module RedmineCAS end end end -end \ No newline at end of file +end