Module: SymbolizeHelper

Extended by:
SymbolizeHelper
Included in:
SymbolizeHelper
Defined in:
lib/mercadopago/active_support/deep_symbolize_keys.rb

Instance Method Summary collapse

Instance Method Details

#symbolize_recursive(hash) ⇒ Object



6
7
8
9
10
# File 'lib/mercadopago/active_support/deep_symbolize_keys.rb', line 6

def symbolize_recursive(hash)
  {}.tap do |h|
    hash.each { |key, value| h[key.to_sym] = transform(value) }
  end
end