Method: Mongoid::Extensions::Float#__mongoize_time__
- Defined in:
- lib/mongoid/extensions/float.rb
#__mongoize_time__ ⇒ Time | ActiveSupport::TimeWithZone
Converts the float into a time as the number of seconds since the epoch.
16 17 18 |
# File 'lib/mongoid/extensions/float.rb', line 16 def __mongoize_time__ ::Time.zone.at(self) end |