Module: Mongoid::Extensions::String::ClassMethods
- Defined in:
- lib/mongoid/extensions/string.rb
Instance Method Summary (collapse)
-
- (String) demongoize(object)
Convert the object from it's mongo friendly ruby type to this type.
-
- (String) mongoize(object)
Turn the object from the ruby type we deal with to a Mongo friendly type.
Instance Method Details
- (String) demongoize(object)
Convert the object from it's mongo friendly ruby type to this type.
131 132 133 |
# File 'lib/mongoid/extensions/string.rb', line 131 def demongoize(object) object.try(:to_s) end |
- (String) mongoize(object)
Turn the object from the ruby type we deal with to a Mongo friendly type.
146 147 148 |
# File 'lib/mongoid/extensions/string.rb', line 146 def mongoize(object) demongoize(object) end |