Method: Mongoid::Threaded#selection
- Defined in:
- lib/mongoid/threaded.rb
#selection(criteria_instance_id) ⇒ Hash
Get the field selection options from the current thread.
273 274 275 276 |
# File 'lib/mongoid/threaded.rb', line 273 def selection(criteria_instance_id) selections = Thread.current["[mongoid][selections]"] selections[criteria_instance_id] if selections end |