summaryrefslogtreecommitdiffstats
path: root/app/controllers/settings_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-03 10:06:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-03 10:06:41 +0000
commitfd18c519387dcf9676f6f65fce2e2be68473d494 (patch)
treed10080d153244c2e021196b937db2bf4d190cd05 /app/controllers/settings_controller.rb
parent8bbb5d9686fb5e3d7c00e097f9cbcff17cb22c1a (diff)
downloadredmine-fd18c519387dcf9676f6f65fce2e2be68473d494.tar.gz
redmine-fd18c519387dcf9676f6f65fce2e2be68473d494.zip
Adds tests for plugin settings editing.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8039 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/settings_controller.rb')
-rw-r--r--app/controllers/settings_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb
index a8b119229..257b90321 100644
--- a/app/controllers/settings_controller.rb
+++ b/app/controllers/settings_controller.rb
@@ -51,12 +51,12 @@ class SettingsController < ApplicationController
def plugin
@plugin = Redmine::Plugin.find(params[:id])
if request.post?
- Setting["plugin_#{@plugin.id}"] = params[:settings]
+ Setting.send "plugin_#{@plugin.id}=", params[:settings]
flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'plugin', :id => @plugin.id
else
@partial = @plugin.settings[:partial]
- @settings = Setting["plugin_#{@plugin.id}"]
+ @settings = Setting.send "plugin_#{@plugin.id}"
end
rescue Redmine::PluginNotFound
render_404