14 lines
358 B
Ruby
14 lines
358 B
Ruby
require 'active_support/notifications'
|
|
|
|
module FastJsonapi
|
|
module ObjectSerializer
|
|
alias serialized_json_without_instrumentation serialized_json
|
|
|
|
def serialized_json
|
|
ActiveSupport::Notifications.instrument(SERIALIZED_JSON_NOTIFICATION, { name: self.class.name }) do
|
|
serialized_json_without_instrumentation
|
|
end
|
|
end
|
|
end
|
|
end
|