Class: Hash
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_mongo(value) ⇒ Object
72 73 74 |
# File 'lib/mongo_mapper/support.rb', line 72 def self.from_mongo(value) HashWithIndifferentAccess.new(value || {}) end |
Instance Method Details
#to_mongo ⇒ Object
76 77 78 |
# File 'lib/mongo_mapper/support.rb', line 76 def to_mongo self end |