Class: Spree::Api::V2::Tenant::CustomerNotificationsController

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

Instance Method Summary collapse

Methods inherited from BaseController

#render_serialized_payload, #require_tenant, #scope

Instance Method Details

#resource_serializerObject



13
14
15
# File 'app/controllers/spree/api/v2/tenant/customer_notifications_controller.rb', line 13

def resource_serializer
  Spree::V2::Tenant::CustomerNotificationSerializer
end

#showObject



8
9
10
11
# File 'app/controllers/spree/api/v2/tenant/customer_notifications_controller.rb', line 8

def show
  customer_notification = SpreeCmCommissioner::CustomerNotification.find(params[:id])
  render_serialized_payload { serialize_resource(customer_notification) }
end