Module: Mongoid::Extensions::Time::Conversions

Included in:
Time
Defined in:
lib/mongoid/extensions/time/conversions.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#cast(value) ⇒ Object



5
6
7
# File 'lib/mongoid/extensions/time/conversions.rb', line 5

def cast(value)
  value.to_time
end