Module: Trestle::Search::ChewyAdapter

Defined in:
lib/trestle/search/adapters/chewy_adapter.rb

Instance Method Summary collapse

Instance Method Details

#count(collection) ⇒ Object



8
9
10
# File 'lib/trestle/search/adapters/chewy_adapter.rb', line 8

def count(collection)
  collection.count
end

#finalize_collection(query) ⇒ Object



4
5
6
# File 'lib/trestle/search/adapters/chewy_adapter.rb', line 4

def finalize_collection(query)
  query.records
end