1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Revert using #each_key

This commit is contained in:
Anton Davydov 2015-04-11 00:44:57 +03:00
parent 4e5ce7da4e
commit df57a68e5e

View file

@ -54,14 +54,14 @@ begin
rescue LoadError
class Hash
def stringify_keys
each_key do |key|
keys.each do |key|
self[key.to_s] = delete(key)
end
self
end if !{}.respond_to?(:stringify_keys)
def symbolize_keys
each_key do |key|
keys.each do |key|
self[(key.to_sym rescue key) || key] = delete(key)
end
self