Module | Mongoid::Timestamps::Created |
In: |
lib/mongoid/timestamps/created.rb
|
This module handles the behaviour for setting up document created at timestamp.
Update the created_at field on the Document to the current time. This is only called on create.
@example Set the created at time.
person.set_created_at