Module: Trestle::Search::Resource::Collection
- Defined in:
- lib/trestle/search/resource.rb
Instance Method Summary collapse
Instance Method Details
#collection(params = {}) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/trestle/search/resource.rb', line 15 def collection(params={}) if searchable? query = params[:q].presence search(query, params) || super else super end end |
#search(query, params = {}) ⇒ Object
24 25 26 |
# File 'lib/trestle/search/resource.rb', line 24 def search(query, params={}) adapter.search(query, params) end |