Method: Mongoid::Extensions::TimeWithZone::ClassMethods#mongoize
- Defined in:
- lib/mongoid/extensions/time_with_zone.rb
#mongoize(object) ⇒ Time
Turn the object from the ruby type we deal with to a Mongo friendly type.
68 69 70 |
# File 'lib/mongoid/extensions/time_with_zone.rb', line 68 def mongoize(object) ::Time.mongoize(object) end |