Method: Mongoid::Threaded#begin_without_default_scope
- Defined in:
- lib/mongoid/threaded.rb
#begin_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.
Begin suppressing default scopes for given model on the current thread.
233 234 235 |
# File 'lib/mongoid/threaded.rb', line 233 def begin_without_default_scope(klass) stack(:without_default_scope).push(klass) end |