Sha256: aa6a2162af1583e4bbe8b016d5ed22f300ea1d45ec8108b5fc79ee9b754a1861
Contents?: true
Size: 736 Bytes
Versions: 4
Compression:
Stored size: 736 Bytes
Contents
module Workarea module Search class AdminLegacyOrders include Query include AdminIndexSearch include AdminSorting include Pagination document Search::Admin def initialize(params = {}) super(params.merge(type: 'legacy_order')) end def facets super + [TermsFacet.new(self, 'order_status')] end def filters [ DateFilter.new(self, 'placed_at', :gte), DateFilter.new(self, 'placed_at', :lte), RangeFilter.new(self, 'total_price', :gte), RangeFilter.new(self, 'total_price', :lt) ] end def current_sort AdminOrders.available_sorts.find(params[:sort]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems