Sha256: 55686a4d56b645ebd83b1f501e89456e4862aab168421648c5d058816f13bffc

Contents?: true

Size: 477 Bytes

Versions: 21

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module Mongoid
  class Boolean

    class << self

      # Turn the object from the ruby type we deal with to a Mongo friendly
      # type.
      #
      # @example Mongoize the object.
      #   Boolean.mongoize("123.11")
      #
      # @return [ String ] The object mongoized.
      #
      # @since 3.0.0
      def mongoize(object)
        ::Boolean.evolve(object)
      end
      alias :evolve :mongoize
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
mongoid-7.1.11 lib/mongoid/extensions/boolean.rb
mongoid-7.2.6 lib/mongoid/extensions/boolean.rb
mongoid-7.2.5 lib/mongoid/extensions/boolean.rb
mongoid-7.1.10 lib/mongoid/extensions/boolean.rb
mongoid-7.1.9 lib/mongoid/extensions/boolean.rb
mongoid-7.2.4 lib/mongoid/extensions/boolean.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/lib/mongoid/extensions/boolean.rb
mongoid-7.2.3 lib/mongoid/extensions/boolean.rb
mongoid-7.1.8 lib/mongoid/extensions/boolean.rb
mongoid-7.2.2 lib/mongoid/extensions/boolean.rb
mongoid-7.2.1 lib/mongoid/extensions/boolean.rb
mongoid-7.1.7 lib/mongoid/extensions/boolean.rb
mongoid-7.2.0 lib/mongoid/extensions/boolean.rb
mongoid-7.1.6 lib/mongoid/extensions/boolean.rb
mongoid-7.1.5 lib/mongoid/extensions/boolean.rb
mongoid-7.2.0.rc1 lib/mongoid/extensions/boolean.rb
mongoid-7.1.4 lib/mongoid/extensions/boolean.rb
mongoid-7.1.2 lib/mongoid/extensions/boolean.rb
mongoid-7.1.1 lib/mongoid/extensions/boolean.rb
mongoid-7.1.0 lib/mongoid/extensions/boolean.rb