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

20 lines
321 B
Markdown

# 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):
```ruby
{
serializer: PostSerializer,
adapter: ActiveModel::Serializer::Adapter::Attributes
}
```