Method: Mongoid::Relations::Referenced::ManyToMany#unscoped
- Defined in:
- lib/mongoid/relations/referenced/many_to_many.rb
#unscoped ⇒ Criteria
Get a criteria for the documents without the default scoping applied.
201 202 203 |
# File 'lib/mongoid/relations/referenced/many_to_many.rb', line 201 def unscoped klass.unscoped.any_in(_id: base.send(foreign_key)) end |