Module: Mongoid::Extensions::Proc::Scoping
- Included in:
- Proc
- Defined in:
- lib/mongoid/extensions/proc/scoping.rb
Overview
Adds functionality for criteria scoping/merging.
Instance Method Summary collapse
-
#scoped(*args) ⇒ Object
Get the proc scoped for criteria merges.
Instance Method Details
#scoped(*args) ⇒ Object
Get the proc scoped for criteria merges.
19 20 21 |
# File 'lib/mongoid/extensions/proc/scoping.rb', line 19 def scoped(*args) call(*args).scoped end |