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



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

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