Class: Mongoid::Boolean
- Inherits:
-
Object
- Object
- Mongoid::Boolean
- Defined in:
- lib/mongoid/extensions/boolean.rb
Class Method Summary collapse
-
.mongoize(object) ⇒ String
Turn the object from the ruby type we deal with to a Mongo friendly type.
Class Method Details
.mongoize(object) ⇒ String
Turn the object from the ruby type we deal with to a Mongo friendly type.
16 17 18 |
# File 'lib/mongoid/extensions/boolean.rb', line 16 def mongoize(object) ::Boolean.evolve(object) end |