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

Version Path
workarea-content_search-1.1.0 app/controllers/workarea/storefront/searches_controller.decorator
workarea-content_search-1.0.9 app/controllers/workarea/storefront/searches_controller.decorator
workarea-content_search-1.0.8 app/controllers/workarea/storefront/searches_controller.decorator