Module | Mongoid::Fields::Serializable::Timekeeping |
In: |
lib/mongoid/fields/serializable/timekeeping.rb
|
This module contains shared behaviour for date conversions.
When reading the field do we need to cast the value? This holds true when times are stored or for big decimals which are stored as strings.
@example Typecast on a read?
field.cast_on_read?
@return [ true ] Date fields cast on read.
@since 2.1.0