Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 362 Bytes
if defined?(ActionView) && defined?(ActionView::Template)
ActionView::Template.class_eval do
def render_template_with_rack_bug(*args, &block)
Rack::Bug::TemplatesPanel.record(path_without_format_and_extension) do
render_template_without_rack_bug(*args, &block)
end
end
alias_method_chain :render_template, :rack_bug
end
end