Class: Superlogger::ActionViewLogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/superlogger/action_view_log_subscriber.rb

Instance Method Summary collapse

Instance Method Details

#render_template(event) ⇒ Object Also known as: render_partial, render_collection



3
4
5
6
7
# File 'lib/superlogger/action_view_log_subscriber.rb', line 3

def render_template(event)
  payload = event.payload

  logger.debug {{ view: payload[:identifier].split('/').last, duration: event.duration.round(2) }}
end