Method: Mongoid::Extensions::Array#__mongoize_time__
- Defined in:
- lib/mongoid/extensions/array.rb
#__mongoize_time__ ⇒ Time | ActiveSupport::TimeWithZone
Note:
Returns a local time in the default time zone.
Converts the array for storing as a time.
54 55 56 |
# File 'lib/mongoid/extensions/array.rb', line 54 def __mongoize_time__ ::Time.zone.local(*self) end |