diff options
author | Go MAEDA <maeda@farend.jp> | 2018-08-01 14:28:39 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-08-01 14:28:39 +0000 |
commit | ed14823d13ae156e5040bd94c400010b92216af0 (patch) | |
tree | edfed74bf367356f794589b6c7c4713a39792bcf /app/models/user_preference.rb | |
parent | 1e0663de9d0d81cd4e508cab77a309129b311f83 (diff) | |
download | redmine-ed14823d13ae156e5040bd94c400010b92216af0.tar.gz redmine-ed14823d13ae156e5040bd94c400010b92216af0.zip |
Replace Hash#keys.each with faster Hash#each_key (#29305).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17458 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r-- | app/models/user_preference.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index efdc41e2d..7373290c5 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -122,7 +122,7 @@ class UserPreference < ActiveRecord::Base # preferences.remove_block('news') def remove_block(block) block = block.to_s.underscore - my_page_layout.keys.each do |group| + my_page_layout.each_key do |group| my_page_layout[group].delete(block) end my_page_layout |