Method: Mongoid::Threaded#exit_without_default_scope

Defined in:
lib/mongoid/threaded.rb

#exit_without_default_scope(klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Exit suppressing default scopes for given model on the current thread.

Examples:

Exit without default scope stack.

Threaded.exit_without_default_scope(klass)

Parameters:

  • klass (Class)

    The model to unsuppress default scoping on.



245
246
247
# File 'lib/mongoid/threaded.rb', line 245

def exit_without_default_scope(klass)
  stack(:without_default_scope).delete(klass)
end