summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-26 19:20:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-26 19:20:37 +0000
commit0d2a22f37a7e4ef1ca1ad5b9bb8758129c04ad18 (patch)
tree790f39d930c45e2959fd17d5fb7c2535b613ab31
parent7c568cccafeb2f1577349419f758478362bf3c97 (diff)
downloadredmine-0d2a22f37a7e4ef1ca1ad5b9bb8758129c04ad18.tar.gz
redmine-0d2a22f37a7e4ef1ca1ad5b9bb8758129c04ad18.zip
Use controller_name and action_name instead of params.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9018 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 313b0f933..f04d59e6d 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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