Sha256: dddc5c851addd37be4e9af8617f3bbe97ae00d0f833f22efe4fd43c6b3e25c97

Contents?: true

Size: 234 Bytes

Versions: 9

Compression:

Stored size: 234 Bytes

Contents

module Mongoid
  module Compatibility
    module ObjectId
      def self.legal?(value)
        Mongoid::Compatibility::Version.mongoid3? ? Moped::BSON::ObjectId.legal?(value) : BSON::ObjectId.legal?(value)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mongoid-compatibility-0.6.0 lib/mongoid/compatibility/object_id.rb
mongoid-compatibility-0.5.1 lib/mongoid/compatibility/object_id.rb
mongoid-compatibility-0.5.0 lib/mongoid/compatibility/object_id.rb
mongoid-compatibility-0.4.1 lib/mongoid/compatibility/object_id.rb
mongoid-compatibility-0.4.0 lib/mongoid/compatibility/object_id.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-compatibility-0.3.1/lib/mongoid/compatibility/object_id.rb
mongoid-compatibility-0.3.1 lib/mongoid/compatibility/object_id.rb
mongoid-compatibility-0.2.0 lib/mongoid/compatibility/object_id.rb
mongoid-compatibility-0.1.0 lib/mongoid-compatibility/object_id.rb