Class: Spree::Api::V2::Tenant::Account::OrdersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/api/v2/tenant/account/orders_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#render_serialized_payload, #require_tenant

Instance Method Details

#collectionObject



10
11
12
# File 'app/controllers/spree/api/v2/tenant/account/orders_controller.rb', line 10

def collection
  scope
end

#resourceObject



14
15
16
# File 'app/controllers/spree/api/v2/tenant/account/orders_controller.rb', line 14

def resource
  @resource ||= scope.find_by!(number: params[:id])
end