Module: Skylight::Probes::ActiveModelSerializers::Instrumentation Private
- Defined in:
- lib/skylight/probes/active_model_serializers.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #as_json ⇒ Object private
Instance Method Details
#as_json ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 8 |
# File 'lib/skylight/probes/active_model_serializers.rb', line 5 def as_json(*) payload = { serializer: self.class } ActiveSupport::Notifications.instrument("render.active_model_serializers", payload) { super } end |