Module: MongoMapper::Extensions::NilClass

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) from_mongo(value)



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

def from_mongo(value)
  value
end

- (Object) to_mongo(value)



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

def to_mongo(value)
  value
end