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