Method: Hash#stringify_keys!

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

#stringify_keys!Object

Destructively converts all keys to strings. Same as stringify_keys, but modifies self.



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

def stringify_keys!
  transform_keys! { |k| Symbol === k ? k.name : k.to_s }
end