Sha256: 551517c8a37a95c3120ed897a47d3a72ff3fbf3ad5e02c900538a2e7570e95cb

Contents?: true

Size: 181 Bytes

Versions: 12

Compression:

Stored size: 181 Bytes

Contents

Spree::ProductsController.class_eval do
  def autocomplete
    keywords = params[:keywords] ||= nil
    json = Spree::Product.autocomplete(keywords)
    render json: json
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_searchkick-0.3.4 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.3.3 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.3.2 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.3.1 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.3.0 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.2.3 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.2.2 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.2.1 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.2 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.1.2 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.1.1 app/controllers/spree/products_controller_decorator.rb
solidus_searchkick-0.1.0 app/controllers/spree/products_controller_decorator.rb