Class: ObjectId

Inherits:
Object show all
Defined in:
lib/mongo_mapper/extensions.rb

Class Method Summary collapse

Class Method Details

.from_mongo(value) ⇒ Object



134
135
136
# File 'lib/mongo_mapper/extensions.rb', line 134

def self.from_mongo(value)
  value
end

.to_mongo(value) ⇒ Object



130
131
132
# File 'lib/mongo_mapper/extensions.rb', line 130

def self.to_mongo(value)
  Plucky.to_object_id(value)
end