Module: Hashie::HashExtensions
- Defined in:
- lib/trail_api.rb
Instance Method Summary collapse
Instance Method Details
#hashie_stringify_keys! ⇒ Object
38 39 40 41 42 |
# File 'lib/trail_api.rb', line 38 def hashie_stringify_keys! inject({}) do |hash, (key, value)| hash.merge(key.to_s => value.respond_to?(:stringify_keys) ? value.stringify_keys : value) end end |