Module: Mongoid::Timestamps
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Timestamps::Timeless::ClassMethods,
ActiveSupport::Concern
|
|
|
Instance Chain:
|
|
| Defined in: | lib/mongoid/timestamps.rb, lib/mongoid/timestamps/created.rb, lib/mongoid/timestamps/short.rb, lib/mongoid/timestamps/timeless.rb, lib/mongoid/timestamps/updated.rb, lib/mongoid/timestamps/created/short.rb, lib/mongoid/timestamps/updated/short.rb |
Overview
This module handles the behavior for setting up document created at and updated at timestamps.
Constant Summary
Timeless - self
Class Attribute Summary
Timestamps::Timeless::ClassMethods - Extended
Class Method Summary
Timestamps::Timeless::ClassMethods - Extended
| clear_timeless_option | Removes the timeless option on the current class. |
| clear_timeless_option_on_update | Sets to remove the timeless option when the next instance of the current class is updated. |
| set_timeless_counter | Clears the timeless counter for the current class if the value has reached zero. |
Instance Attribute Summary
Updated - Included
| #able_to_set_updated_at? | Is the updated timestamp able to be set? |
Timeless - self
| #timeless | Begin an execution that should skip timestamping. |
| #timeless? | Returns whether the document should skip timestamping. |
Created - Included
| #able_to_set_created_at? | Is the created timestamp able to be set? |
Instance Method Summary
Updated - Included
| #set_updated_at | Update the updated_at field on the |
Timeless - self
| #clear_timeless_option | Clears out the timeless option. |
Created - Included
| #set_created_at | Update the created_at field on the |