Sha256: c8c551d334e672f22d5a75741f5f6168f4a3a7517ecb41324b69b460cae50df0

Contents?: true

Size: 361 Bytes

Versions: 18

Compression:

Stored size: 361 Bytes

Contents

class Api::LineItemsController < Api::BaseController
  resource_controller_for_api
  actions :index, :show, :update, :create
  belongs_to :order

  private

    def collection_serialization_options
      { :include => [:variant], :methods => [:description] }
    end
    
    def object_serialization_options
      collection_serialization_options
    end

end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
spree-0.11.4 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree-0.11.3 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree_api-0.30.2 app/controllers/api/line_items_controller.rb
spree_api-0.40.4 app/controllers/api/line_items_controller.rb
spree_api-0.40.3 app/controllers/api/line_items_controller.rb
spree_api-0.40.2 app/controllers/api/line_items_controller.rb
spree_api-0.40.1 app/controllers/api/line_items_controller.rb
spree_api-0.40.0 app/controllers/api/line_items_controller.rb
spree_api-0.30.1 app/controllers/api/line_items_controller.rb
spree_api-0.30.0 app/controllers/api/line_items_controller.rb
spree-0.11.2 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree-0.11.1 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree_api-0.30.0.beta1 app/controllers/api/line_items_controller.rb
spree-0.11.0 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree-0.10.2 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree-0.10.1 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree-0.10.0 vendor/extensions/api/app/controllers/api/line_items_controller.rb
spree-0.10.0.beta vendor/extensions/api/app/controllers/api/line_items_controller.rb