module Mongoid::Extensions::TimeWithZone
Public Instance Methods
mongoize()
click to toggle source
Turn the object from the ruby type we deal with to a Mongo friendly type.
@example Mongoize the object.
date_time.mongoize
@return [ Time
] The object mongoized.
@since 3.0.0
# File lib/mongoid/extensions/time_with_zone.rb, line 15 def mongoize ::ActiveSupport::TimeWithZone.mongoize(self) end