Sha256: b272e6d5e8ad3abd58ac8264ca042618f510b8bb9d962ec684655d1b7e5ee29e

Contents?: true

Size: 612 Bytes

Versions: 7

Compression:

Stored size: 612 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module String #:nodoc:

      # This module has object checks in it.
      module Checks #:nodoc:
        attr_accessor :unconvertable_to_bson

        # Is the object not to be converted to bson on criteria creation?
        #
        # @example Is the object unconvertable?
        #   object.unconvertable_to_bson?
        #
        # @return [ true, false ] If the object is unconvertable.
        #
        # @since 2.2.1
        def unconvertable_to_bson?
          !!@unconvertable_to_bson
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mongoid-2.2.6 lib/mongoid/extensions/string/checks.rb
mongoid-2.2.5 lib/mongoid/extensions/string/checks.rb
mongoid-2.2.4 lib/mongoid/extensions/string/checks.rb
mongoid-2.2.3 lib/mongoid/extensions/string/checks.rb
mongoid-2.3.0 lib/mongoid/extensions/string/checks.rb
mongoid-2.2.2 lib/mongoid/extensions/string/checks.rb
mongoid-2.2.1 lib/mongoid/extensions/string/checks.rb