diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-20 09:23:05 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-20 09:23:05 +0000 |
commit | 380444f085d95656347cb4e62d41e851ca8494b9 (patch) | |
tree | 29b59c9e08ff8236b3abdde6396ed704fd68092b /app/controllers/settings_controller.rb | |
parent | 21a48d79f4f116a59283803475a5799e83da6074 (diff) | |
download | redmine-380444f085d95656347cb4e62d41e851ca8494b9.tar.gz redmine-380444f085d95656347cb4e62d41e851ca8494b9.zip |
Fix RuboCop offense Performance/StringIdentifierArgument (#39888).
git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/settings_controller.rb')
-rw-r--r-- | app/controllers/settings_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index 9a595f3f2..9fb08d651 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -70,12 +70,12 @@ class SettingsController < ApplicationController if request.post? setting = params[:settings] ? params[:settings].permit!.to_h : {} - Setting.send "plugin_#{@plugin.id}=", setting + Setting.send :"plugin_#{@plugin.id}=", setting flash[:notice] = l(:notice_successful_update) redirect_to plugin_settings_path(@plugin) else @partial = @plugin.settings[:partial] - @settings = Setting.send "plugin_#{@plugin.id}" + @settings = Setting.send :"plugin_#{@plugin.id}" end rescue Redmine::PluginNotFound render_404 |