Module: MongoMapper::Extensions::Hash

Included in:
Hash
Defined in:
lib/mongo_mapper/extensions/hash.rb

Instance Method Summary collapse

Instance Method Details

#from_mongo(value) ⇒ Object



5
6
7
# File 'lib/mongo_mapper/extensions/hash.rb', line 5

def from_mongo(value)
  HashWithIndifferentAccess.new(value || {})
end