Module | Mongoid::Timestamps::Updated |
In: |
lib/mongoid/timestamps/updated.rb
|
This module handles the behaviour for setting up document updated at timestamp.
Update the updated_at field on the Document to the current time. This is only called on create and on save.
@example Set the updated at time.
person.set_updated_at