summaryrefslogtreecommitdiffstats
path: root/app/models/user_preference.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-08-01 14:28:39 +0000
committerGo MAEDA <maeda@farend.jp>2018-08-01 14:28:39 +0000
commited14823d13ae156e5040bd94c400010b92216af0 (patch)
treeedfed74bf367356f794589b6c7c4713a39792bcf /app/models/user_preference.rb
parent1e0663de9d0d81cd4e508cab77a309129b311f83 (diff)
downloadredmine-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.rb2
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