Module: ActiveModelSerializers::Logging::ClassMethods

Defined in:
lib/active_model_serializers/logging.rb

Instance Method Summary collapse

Instance Method Details

#instrument_renderingObject



18
19
20
21
22
23
24
25
26
# File 'lib/active_model_serializers/logging.rb', line 18

def instrument_rendering
  around_render do |args, block|
    tag_logger do
      notify_render do
        block.call(args)
      end
    end
  end
end