Module: Mongoid::Threaded::Lifecycle::ClassMethods

Defined in:
lib/mongoid/core_ext/threaded/lifecycle.rb

Instance Method Summary collapse

Instance Method Details

#_loading_revision?true, false

Is the current thread in loading revision mode?

Examples:

Is the current thread in loading revision mode?

proxy._loading_revision?

Returns:

  • (true, false)

    If the thread is loading a revision.

Since:

  • 2.3.4



32
33
34
# File 'lib/mongoid/core_ext/threaded/lifecycle.rb', line 32

def _loading_revision?
  Threaded.executing?('load_revision')
end