Class: Spree::Api::V2::Tenant::TripsController

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

Instance Method Summary collapse

Methods inherited from BaseController

#render_serialized_payload, #require_tenant

Instance Method Details

#showObject



6
7
8
9
10
11
12
# File 'app/controllers/spree/api/v2/tenant/trips_controller.rb', line 6

def show
  resource = scope.find(params[:id])

  render_serialized_payload do
    serialize_resource(resource)
  end
end