Sha256: 52be682a225f8b83a946cd578f41fdaa899ce94a4c0257ac347088d644aaa125

Contents?: true

Size: 456 Bytes

Versions: 11

Compression:

Stored size: 456 Bytes

Contents

class Spree::Api::LineItemsController < Spree::Api::BaseController
  private
    def parent
      if params[:order_id]
        @parent ||= Spree::Order.find_by_param(params[:order_id])
      end
    end

    def parent_data
      params[:order_id]
    end

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

    def object_serialization_options
      collection_serialization_options
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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