Method: Mongoid::Scopable::ClassMethods#scoped
- Defined in:
- lib/mongoid/scopable.rb
#scoped(options = nil) ⇒ Criteria
Note:
This will force the default scope to be applied.
Get a criteria for the document with normal scoping.
170 171 172 |
# File 'lib/mongoid/scopable.rb', line 170 def scoped( = nil) queryable.scoped() end |