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.
245 246 247 |
# File 'lib/mongoid/threaded.rb', line 245 def exit_without_default_scope(klass) stack(:without_default_scope).delete(klass) end |