Module Mongoid::Timestamps::Timeless
In: lib/mongoid/timestamps/timeless.rb

This module adds behaviour for turning off timestamping in single or multiple calls.

Methods

Classes and Modules

Module Mongoid::Timestamps::Timeless::ClassMethods

Public Instance methods

Begin an execution that should skip timestamping.

@example Save a document but don‘t timestamp.

  person.timeless.save

@return [ Document ] The document this was called on.

@since 2.3.0

Are we currently timestamping?

@example Should timestamps be applied?

  person.timestamping?

@return [ true, false ] If the current thread is timestamping.

@since 2.3.0

[Validate]