Module: Mongoid::Extensions::String::ClassMethods
- Defined in:
- lib/mongoid/extensions/string.rb
Instance Method Summary collapse
-
#mongoize(object) ⇒ String
(also: #demongoize)
Turn the object from the ruby type we deal with to a Mongo friendly type.
Instance Method Details
#mongoize(object) ⇒ String Also known as: demongoize
Turn the object from the ruby type we deal with to a Mongo friendly type.
169 170 171 |
# File 'lib/mongoid/extensions/string.rb', line 169 def mongoize(object) object.try(:to_s) end |