diff options
author | Go MAEDA <maeda@farend.jp> | 2024-08-12 08:45:54 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-08-12 08:45:54 +0000 |
commit | b3d1deeece819ee25de1b3168393845780d6c51e (patch) | |
tree | 327c50539ec5bc580821764c91cee8c550a6ed8b /lib/redmine/sudo_mode.rb | |
parent | 6e21ae720909f9980e58c9411fb9ed8a81f06833 (diff) | |
download | redmine-b3d1deeece819ee25de1b3168393845780d6c51e.tar.gz redmine-b3d1deeece819ee25de1b3168393845780d6c51e.zip |
Fix RuboCop offense Layout/SpaceInsideParens, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22954 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/sudo_mode.rb')
-rw-r--r-- | lib/redmine/sudo_mode.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb index dd1876f11..39daaeeed 100644 --- a/lib/redmine/sudo_mode.rb +++ b/lib/redmine/sudo_mode.rb @@ -121,7 +121,7 @@ module Redmine # display the sudo password form def render_sudo_form(param_names) @sudo_form ||= SudoMode::Form.new - @sudo_form.original_fields = params.slice( *param_names ) + @sudo_form.original_fields = params.slice(*param_names) # a simple 'render "sudo_mode/new"' works when used directly inside an # action, but not when called from a before_action: respond_to do |format| @@ -157,7 +157,7 @@ module Redmine if controller.api_request? true elsif SudoMode.possible? && method_matches - controller.require_sudo_mode( *parameters ) + controller.require_sudo_mode(*parameters) else true end |