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 /lib/plugins | |
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 'lib/plugins')
-rw-r--r-- | lib/plugins/open_id_authentication/lib/open_id_authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication.rb index 7afe6fdeb..e31aba1f2 100644 --- a/lib/plugins/open_id_authentication/lib/open_id_authentication.rb +++ b/lib/plugins/open_id_authentication/lib/open_id_authentication.rb @@ -61,7 +61,7 @@ module OpenIdAuthentication @code end - ERROR_MESSAGES.keys.each { |state| define_method("#{state}?") { @code == state } } + ERROR_MESSAGES.each_key { |state| define_method("#{state}?") { @code == state } } def successful? @code == :successful |