Sha256: 00cd9ebf8e4bf189bd7159a8f7b7f51052af7e72de0337e83d67dfb2c8626e07

Contents?: true

Size: 594 Bytes

Versions: 11

Compression:

Stored size: 594 Bytes

Contents

class Spree::Api::OrdersController < Spree::Api::BaseController
  before_filter :access_denied, :except => [:index, :show]
  authorize_resource :class => Spree::Order

  private
    def find_resource
      Spree::Order.find_by_param(params[:id])
    end

    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

11 entries across 11 versions & 1 rubygems

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