Module: MongoMapper::Extensions::Hash

Included in:
Hash
Defined in:
lib/mm_dirtier/support.rb

Instance Method Summary collapse

Instance Method Details

#from_mongo(value) ⇒ Object



4
5
6
7
# File 'lib/mm_dirtier/support.rb', line 4

def from_mongo(value)
  value ||= {}
  value.make_indifferent!
end