Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/passport/helpers/core.rb

Instance Method Summary collapse

Instance Method Details

#recursively_symbolize_keys!Object



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/passport/helpers/core.rb', line 33

def recursively_symbolize_keys!
  self.symbolize_keys!
  self.values.each do |v|
    if v.is_a? Hash
      v.recursively_symbolize_keys!
    elsif v.is_a? Array
      v.recursively_symbolize_keys!
    end
  end
  self
end