Sha256: 4482099fb0e0616818dbcc171befe852895a7db62185e3df070cb8013d61e64e

Contents?: true

Size: 213 Bytes

Versions: 4

Compression:

Stored size: 213 Bytes

Contents

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

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

class BSON::ObjectId
  extend ObjectIdConversions
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
toystore-mongo-0.12.0 lib/toy/extensions/bson_object_id.rb
toystore-mongo-0.11.0 lib/toy/extensions/bson_object_id.rb
toystore-mongo-0.10.0 lib/toy/extensions/bson_object_id.rb
toystore-mongo-0.9.0 lib/toy/extensions/bson_object_id.rb