Sha256: 169ba2dca1777c0c73baeed802f4afec3d248da43c0d398802f826d91fc00fc2

Contents?: true

Size: 416 Bytes

Versions: 6

Compression:

Stored size: 416 Bytes

Contents

# 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
    end
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
mongoid-4.0.0.alpha2 lib/mongoid/extensions/boolean.rb
mongoid-4.0.0.alpha1 lib/mongoid/extensions/boolean.rb
sepastian-mongoid-rails4-4.0.1.alpha lib/mongoid/extensions/boolean.rb
sepastian-mongoid-rails4-4.0.0.alpha lib/mongoid/extensions/boolean.rb
mongoid_heroku_stable-4.0.0 lib/mongoid/extensions/boolean.rb
mongoid_rails4-4.0.0 lib/mongoid/extensions/boolean.rb