Class Mongoid::Fields::Serializable::DateTime
In: lib/mongoid/fields/serializable/date_time.rb
Parent: Object

Defines the behaviour for date time fields.

Methods

Included Modules

Serializable Timekeeping

Public Instance methods

Deserialize this field from the type stored in MongoDB to the type defined on the model.

@example Deserialize the field.

  field.deserialize(object)

@param [ Object ] object The object to cast.

@return [ DateTime ] The converted date time.

@since 2.1.0

[Validate]