Sha256: 91b49e87a6e69d76918137c2c2fc0b1135aa369732bb152aec7681154d2f885e

Contents?: true

Size: 184 Bytes

Versions: 22

Compression:

Stored size: 184 Bytes

Contents

module BSON
  class ObjectID
    def to_bson(*args)
      self
    end

    def self.cast_from_string(string)
      ObjectID.from_string(string) unless string.blank?
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
mongo_doc-0.6.28 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.27 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.26 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.25 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.23 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.22 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.21 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.20 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.19 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.18 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.17 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.16 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.15 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.14 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.13 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.12 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.11 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.10 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.9 lib/mongo_doc/ext/object_id.rb
mongo_doc-0.6.8 lib/mongo_doc/ext/object_id.rb