Sha256: 30212d053187887987e58805a3eca8dd9d128940b6421a6320d5f209356aa71b

Contents?: true

Size: 443 Bytes

Versions: 20

Compression:

Stored size: 443 Bytes

Contents

class Api::LineItemsController < Api::BaseController

  private
    def parent
      if params[:order_id]
        @parent ||= 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

20 entries across 20 versions & 2 rubygems

Version Path
spree_api-0.70.7 app/controllers/api/line_items_controller.rb
spree_api-0.70.6 app/controllers/api/line_items_controller.rb
spree_api-0.60.6 app/controllers/api/line_items_controller.rb
spree_api-0.70.5 app/controllers/api/line_items_controller.rb
spree_api-0.70.4 app/controllers/api/line_items_controller.rb
spree_api-0.60.5 app/controllers/api/line_items_controller.rb
spree_api-0.70.3 app/controllers/api/line_items_controller.rb
spree_api-0.70.2 app/controllers/api/line_items_controller.rb
spree_api-0.60.4 app/controllers/api/line_items_controller.rb
spree_api-0.60.3 app/controllers/api/line_items_controller.rb
spree_api-0.70.1 app/controllers/api/line_items_controller.rb
spree_api-0.70.0 app/controllers/api/line_items_controller.rb
spree_api-0.60.2 app/controllers/api/line_items_controller.rb
spree_api-0.70.0.rc2 app/controllers/api/line_items_controller.rb
spree_api-0.70.RC1 app/controllers/api/line_items_controller.rb
spree_bushido_api-0.80.28 app/controllers/api/line_items_controller.rb
spree_bushido_api-0.80.27 app/controllers/api/line_items_controller.rb
spree_api-0.60.1 app/controllers/api/line_items_controller.rb
spree_api-0.60.0 app/controllers/api/line_items_controller.rb
spree_api-0.60.0.RC1 app/controllers/api/line_items_controller.rb