Sha256: 8e41dcff1b4bed5a24199e3bd3927435d7bcaa4db77801a4d73f531ae3556fde

Contents?: true

Size: 543 Bytes

Versions: 32

Compression:

Stored size: 543 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Extensions
    module Boolean
      module ClassMethods

        # 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)
          evolve(object)
        end
      end
    end
  end
end

::Boolean.__send__(:extend, Mongoid::Extensions::Boolean::ClassMethods)

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
mongoid-3.1.7 lib/mongoid/extensions/boolean.rb
mongoid-3.1.6 lib/mongoid/extensions/boolean.rb
mongoid-3.1.5 lib/mongoid/extensions/boolean.rb
mongoid-3.1.4 lib/mongoid/extensions/boolean.rb
mongoid-3.1.3 lib/mongoid/extensions/boolean.rb
mongoid-3.1.2 lib/mongoid/extensions/boolean.rb
mongoid-3.0.23 lib/mongoid/extensions/boolean.rb
mongoid-3.1.1 lib/mongoid/extensions/boolean.rb
mongoid-3.1.0 lib/mongoid/extensions/boolean.rb
mongoid-3.0.22 lib/mongoid/extensions/boolean.rb
mongoid-3.0.21 lib/mongoid/extensions/boolean.rb
mongoid-3.0.20 lib/mongoid/extensions/boolean.rb
mongoid-3.0.19 lib/mongoid/extensions/boolean.rb
mongoid-3.0.18 lib/mongoid/extensions/boolean.rb
mongoid-3.0.17 lib/mongoid/extensions/boolean.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.16/lib/mongoid/extensions/boolean.rb
mongoid-3.0.16 lib/mongoid/extensions/boolean.rb
mongoid-3.0.15 lib/mongoid/extensions/boolean.rb
mongoid-3.0.14 lib/mongoid/extensions/boolean.rb
mongoid-3.0.13 lib/mongoid/extensions/boolean.rb