Sha256: a4368edeaf24689743601096bf3ecc5104a40c736c65e66edbdab28b53205bd4
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
module Workarea decorate Storefront::SearchesController, with: :content_search do def content response = Search::StorefrontSearch.new(params.to_unsafe_h).response response.template = 'content' handle_search_response(response) end def set_search(response) if response.template == 'content' @search = Storefront::ContentSearchViewModel.new(response, view_model_options) else super end end end end
Version data entries
3 entries across 3 versions & 1 rubygems