Class: Mongoid::Boolean

Inherits:
Object
  • Object
show all
Defined in:
build/mongoid-7.4/lib/mongoid/extensions/boolean.rb

Class Method Summary collapse

Class Method Details

.mongoize(object) ⇒ String

Turn the object from the ruby type we deal with to a Mongo friendly type.

Examples:

Mongoize the object.

Boolean.mongoize("123.11")

Returns:

  • (String)

    The object mongoized.



15
16
17
# File 'build/mongoid-7.4/lib/mongoid/extensions/boolean.rb', line 15

def mongoize(object)
  evolve(object)
end