Method: Mongoid::Timestamps::Timeless::ClassMethods#timeless
- Defined in:
- lib/mongoid/timestamps/timeless.rb
#timeless ⇒ Class
Begin an execution that should skip timestamping.
59 60 61 62 63 64 65 |
# File 'lib/mongoid/timestamps/timeless.rb', line 59 def timeless counter = 0 counter += 1 if self < Mongoid::Timestamps::Created counter += 1 if self < Mongoid::Timestamps::Updated Timeless[name] = counter self end |