Module: Mongoid::Timestamps::Updated
- Defined in:
- lib/workarea/ext/mongoid/timestamps_timeless.rb
Instance Method Summary collapse
Instance Method Details
#set_updated_at ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/workarea/ext/mongoid/timestamps_timeless.rb', line 20 def set_updated_at if able_to_set_updated_at? self.updated_at = Time.current.utc unless updated_at_changed? end clear_timeless_option end |