Action View Log Subscriber

Provides functionality so that Rails can output logs from Action View.

Methods
F
L
R
Instance Public methods
logger()

TODO: Ideally, ActionView should have its own logger so it does not depend on AC.logger

# File actionpack/lib/action_view/log_subscriber.rb, line 16
def logger
  ActionController::Base.logger if defined?(ActionController::Base)
end
render_collection(event)
render_partial(event)
render_template(event)
Also aliased as: render_partial, render_collection
# File actionpack/lib/action_view/log_subscriber.rb, line 6
def render_template(event)
  message = "  Rendered #{from_rails_root(event.payload[:identifier])}"
  message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
  message << (" (%.1fms)" % event.duration)
  info(message)
end
Instance Protected methods
from_rails_root(string)
# File actionpack/lib/action_view/log_subscriber.rb, line 22
def from_rails_root(string)
  string.sub("#{Rails.root}/", "").sub(%r^app\/views\//, "")
end