active_model_serializers/docs/general/instrumentation.md
2015-11-10 03:09:24 -06:00

321 B

Instrumentation

ActiveModelSerializers uses the ActiveSupport::Notification API, which allows for subscribing to events, such as for logging.

Events

Name:

render.active_model_serializers

Payload (example):

{
  serializer: PostSerializer,
  adapter: ActiveModel::Serializer::Adapter::Attributes
}