Method: Mongoid::Contextual::MapReduce#scope
- Defined in:
- lib/mongoid/contextual/map_reduce.rb
#scope(object) ⇒ MapReduce
Adds a javascript object to the global scope of the map/reduce.
198 199 200 201 |
# File 'lib/mongoid/contextual/map_reduce.rb', line 198 def scope(object) command[:scope] = object self end |