Module: Refiner::Query
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/refiner/query.rb
Instance Method Summary collapse
Instance Method Details
#refiner_query ⇒ Object
14 15 16 |
# File 'lib/refiner/query.rb', line 14 def refiner_query Hash[*params[:query].split(/\//)] rescue {} end |
#segment_refiner_query_by(*detectors) ⇒ Object
10 11 12 |
# File 'lib/refiner/query.rb', line 10 def segment_refiner_query_by(*detectors) refiner_query.slice(*detectors) rescue {} end |