Methods

Class/Module Index [+]

Quicksearch

Mongoid::Timestamps::Timeless::ClassMethods

Public Instance Methods

timeless() click to toggle source

Begin an execution that should skip timestamping.

@example Create a document but don’t timestamp.

Person.timeless.create(:title => "Sir")

@return [ Class ] The class this was called on.

@since 2.3.0

# File lib/mongoid/timestamps/timeless.rb, line 43
def timeless
  tap { Threaded.timeless = true }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.