]> source.dussan.org Git - redmine.git/commitdiff
Use controller_name and action_name instead of params.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 26 Feb 2012 19:20:37 +0000 (19:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 26 Feb 2012 19:20:37 +0000 (19:20 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9018 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 313b0f9330409962f68f2408ee23d0a9b0a57697..f04d59e6dcaf9e5a67bf5e61a79f03fe6c9fd70c 100644 (file)
@@ -476,8 +476,8 @@ module ApplicationHelper
       css << 'theme-' + theme.name
     end
 
-    css << 'controller-' + params[:controller]
-    css << 'action-' + params[:action]
+    css << 'controller-' + controller_name
+    css << 'action-' + action_name
     css.join(' ')
   end