mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user