Module: Chewy::Search::Scoping::ClassMethods

Defined in:
lib/chewy/search/scoping.rb

Instance Method Summary collapse

Instance Method Details

#scopesArray<Chewy::Search::Request>

The scopes stack.

Returns:



31
32
33
# File 'lib/chewy/search/scoping.rb', line 31

def scopes
  Chewy.current[:chewy_scopes] ||= []
end