Class: Hash

Inherits:
Object
  • Object
show all
Extended by:
MongoMapper::Extensions::Hash
Defined in:
lib/mm_dirtier/support.rb

Instance Method Summary collapse

Methods included from MongoMapper::Extensions::Hash

from_mongo

Instance Method Details

#make_indifferent!Object



40
41
42
43
44
45
46
47
48
# File 'lib/mm_dirtier/support.rb', line 40

def make_indifferent!
  return self if defined?(@is_indifferent) && @is_indifferent

  @is_indifferent = true
  stringify_keys!
  extend IndifferentAccess

  self
end