Sha256: 63d8add95dbff5a2613e5ad3157526d042622507b3ede1113f86ed754c532cf7

Contents?: true

Size: 375 Bytes

Versions: 11

Compression:

Stored size: 375 Bytes

Contents

class Spree::Api::ProductsController < Spree::Api::BaseController
  include Spree::Core::Search

  private
    def collection
      params[:per_page] ||= 100
      @searcher = Spree::Config.searcher_class.new(params)
      @collection = @searcher.retrieve_products
    end

    def object_serialization_options
      { :include => [:master, :variants, :taxons] }
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_api-1.0.7 app/controllers/spree/api/products_controller.rb
spree_api-1.0.6 app/controllers/spree/api/products_controller.rb
spree_api-1.0.4 app/controllers/spree/api/products_controller.rb
spree_api-1.0.3 app/controllers/spree/api/products_controller.rb
spree_api-1.0.2 app/controllers/spree/api/products_controller.rb
spree_api-1.0.1 app/controllers/spree/api/products_controller.rb
spree_api-1.0.0 app/controllers/spree/api/products_controller.rb
spree_api-1.0.0.rc4 app/controllers/spree/api/products_controller.rb
spree_api-1.0.0.rc3 app/controllers/spree/api/products_controller.rb
spree_api-1.0.0.rc2 app/controllers/spree/api/products_controller.rb
spree_api-1.0.0.rc1 app/controllers/spree/api/products_controller.rb