Module: MongoMapper::Extensions::NilClass

Included in:
NilClass
Defined in:
lib/mongo_mapper/extensions/nil_class.rb

Instance Method Summary collapse

Instance Method Details

#from_mongo(value) ⇒ Object



9
10
11
# File 'lib/mongo_mapper/extensions/nil_class.rb', line 9

def from_mongo(value)
  value
end

#to_mongo(value) ⇒ Object



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

def to_mongo(value)
  value
end