diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-20 08:13:48 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-20 08:13:48 +0000 |
commit | c8640d7ffc28b1632106e2d2bc33f5d792d644fc (patch) | |
tree | 221c5cd85f75561695faf6c4d795d0263f2a5cc3 /app/models/role.rb | |
parent | d9ef2d191cdb3d04508530275bc99c3710820fcb (diff) | |
download | redmine-c8640d7ffc28b1632106e2d2bc33f5d792d644fc.tar.gz redmine-c8640d7ffc28b1632106e2d2bc33f5d792d644fc.zip |
Fix RuboCop offense Style/HashEachMethods (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22532 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/role.rb')
-rw-r--r-- | app/models/role.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/role.rb b/app/models/role.rb index 1665d7982..13ebb3324 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -224,7 +224,7 @@ class Role < ActiveRecord::Base def permissions_tracker_ids=(arg) h = arg.to_hash - h.values.each {|v| v.reject!(&:blank?)} + h.each_value {|v| v.reject!(&:blank?)} super(h) end |