Class: Spree::Api::V2::Tenant::Account::OrdersController
- Inherits:
-
BaseController
- Object
- ResourceController
- BaseController
- Spree::Api::V2::Tenant::Account::OrdersController
show all
- Defined in:
- app/controllers/spree/api/v2/tenant/account/orders_controller.rb
Instance Method Summary
collapse
#render_serialized_payload, #require_tenant
Instance Method Details
#collection ⇒ Object
10
11
12
|
# File 'app/controllers/spree/api/v2/tenant/account/orders_controller.rb', line 10
def collection
scope
end
|
#resource ⇒ Object
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
|