Method: Mongoid::Threaded#selection

Defined in:
lib/mongoid/threaded.rb

#selectionHash

Get the field selection options from the current thread.

Examples:

Get the field selection options.

Threaded.selection

Since:

  • 2.4.4



186
187
188
# File 'lib/mongoid/threaded.rb', line 186

def selection
  Thread.current[:"[mongoid]:selection"]
end