Sha256: f175b6825f1c5c3c6ccb4284206cff3b5ab612ee9993e4b7f098147ac7752d51

Contents?: true

Size: 448 Bytes

Versions: 19

Compression:

Stored size: 448 Bytes

Contents

class Api::OrdersController < Api::BaseController
  resource_controller_for_api
  actions :index, :show

  private

    def object_serialization_options
      { :include => {
          :bill_address => {:include => [:country, :state]},
          :ship_address => {:include => [:country, :state]},
          :shipments => {:include => [:shipping_method, :address]},
          :line_items => {:include => [:variant]}
          }
      }
    end

end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
spree-0.11.4 vendor/extensions/api/app/controllers/api/orders_controller.rb
spree-0.11.3 vendor/extensions/api/app/controllers/api/orders_controller.rb
spree_api-0.30.2 app/controllers/api/orders_controller.rb
spree_api-0.40.4 app/controllers/api/orders_controller.rb
spree_api-0.50.4 app/controllers/api/orders_controller.rb
spree_api-0.50.3 app/controllers/api/orders_controller.rb
spree_api-0.50.2 app/controllers/api/orders_controller.rb
spree_api-0.50.1 app/controllers/api/orders_controller.rb
spree_api-0.50.0 app/controllers/api/orders_controller.rb
spree_api-0.40.3 app/controllers/api/orders_controller.rb
spree_api-0.40.2 app/controllers/api/orders_controller.rb
spree_api-0.40.1 app/controllers/api/orders_controller.rb
spree_api-0.40.0 app/controllers/api/orders_controller.rb
spree_api-0.30.1 app/controllers/api/orders_controller.rb
spree_api-0.30.0 app/controllers/api/orders_controller.rb
spree-0.11.2 vendor/extensions/api/app/controllers/api/orders_controller.rb
spree-0.11.1 vendor/extensions/api/app/controllers/api/orders_controller.rb
spree_api-0.30.0.beta1 app/controllers/api/orders_controller.rb
spree-0.11.0 vendor/extensions/api/app/controllers/api/orders_controller.rb