module Mongoid::Extensions::Time
Adds type-casting behavior to Time
class.
Public Instance Methods
__mongoize_time__()
click to toggle source
mongoize()
click to toggle source
Turn the object from the ruby type we deal with to a Mongo friendly type.
@example Mongoize the object.
time.mongoize
@return [ Time
| nil ] The object mongoized or nil.
# File lib/mongoid/extensions/time.rb, line 27 def mongoize ::Time.mongoize(self) end