123456789_123456789_123456789_123456789_123456789_

Class: ActionView::LogSubscriber::Start

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, Utils
Inherits: Object
Defined in: actionview/lib/action_view/log_subscriber.rb

Instance Method Summary

Instance Method Details

#finish(name, id, payload)

[ GitHub ]

  
# File 'actionview/lib/action_view/log_subscriber.rb', line 97

def finish(name, id, payload)
end

#silenced?(_) ⇒ Boolean

[ GitHub ]

  
# File 'actionview/lib/action_view/log_subscriber.rb', line 100

def silenced?(_)
  logger.nil? || !logger.debug?
end

#start(name, id, payload)

[ GitHub ]

  
# File 'actionview/lib/action_view/log_subscriber.rb', line 79

def start(name, id, payload)
  return unless logger
  logger.debug do
    qualifier =
      if name == "render_template.action_view"
        ""
      elsif name == "render_layout.action_view"
        "layout "
      end

    return unless qualifier

    message = +"  Rendering #{qualifier}#{from_rails_root(payload[:identifier])}"
    message << " within #{from_rails_root(payload[:layout])}" if payload[:layout]
    message
  end
end