Module: ObjectIdConversions

Included in:
BSON::ObjectId
Defined in:
lib/toy/extensions/bson_object_id.rb

Instance Method Summary collapse

Instance Method Details

#from_store(value) ⇒ Object



6
7
8
# File 'lib/toy/extensions/bson_object_id.rb', line 6

def from_store(value, *)
  Plucky.to_object_id(value)
end

#to_store(value) ⇒ Object



2
3
4
# File 'lib/toy/extensions/bson_object_id.rb', line 2

def to_store(value, *)
  Plucky.to_object_id(value)
end