search for: from_rails_root

Displaying 1 result from an estimated 1 matches for "from_rails_root".

2011 Apr 15
0
Suppressing log line for partials
...most of the messages, I just don''t see a need for taking up a line for each partial that is rendered. The logging is done in action_pack in the log_subscriber file here: class LogSubscriber < ActiveSupport::LogSubscriber 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 As an experiment, I changed the info line to: info(...