Method: ActiveSupport::CoreExtensions::Hash::Keys#stringify_keys!

Defined in:
lib/active_support/core_ext/hash/keys.rb

#stringify_keys!Object

Destructively convert all keys to strings.



14
15
16
17
18
19
# File 'lib/active_support/core_ext/hash/keys.rb', line 14

def stringify_keys!
  keys.each do |key|
    self[key.to_s] = delete(key)
  end
  self
end