Sha256: 7edec06fe2449c2ba980a9f5da5ac93f448d77106015eb01818fc14de844dcf1
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
module Workarea decorate Search::ProductSearch, with: :flow_io do def selected_sort return super unless params[:experience].present? && (params[:sort] == "price_asc" || params[:sort] == "price_desc") if params[:sort] == "price_asc" Sort.new(I18n.t('workarea.sorts.price_asc'), :price_asc, :"sorts.price_#{params[:experience].key.systemize}", :asc) elsif params[:sort] == "price_desc" sort.new(I18n.t('workarea.sorts.price_asc'), :price_asc, :"sorts.price_#{params[:experience].key.systemize}", :asc) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | app/queries/workarea/search/product_search.decorator |