summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-13 13:52:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-13 13:52:56 +0000
commitc31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b (patch)
tree459eb338daf1a88b8819b47a9ecb2d024426a7d6 /app/controllers
parentc93fccc84a939b14bd5d67d58514bd2ef58e4a08 (diff)
downloadredmine-c31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b.tar.gz
redmine-c31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b.zip
Code cleanup: implement Plugin#to_param for generating routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10995 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/settings_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb
index e3a2c6d26..f5e6305de 100644
--- a/app/controllers/settings_controller.rb
+++ b/app/controllers/settings_controller.rb
@@ -55,7 +55,7 @@ class SettingsController < ApplicationController
if request.post?
Setting.send "plugin_#{@plugin.id}=", params[:settings]
flash[:notice] = l(:notice_successful_update)
- redirect_to plugin_settings_path(@plugin.id)
+ redirect_to plugin_settings_path(@plugin)
else
@partial = @plugin.settings[:partial]
@settings = Setting.send "plugin_#{@plugin.id}"