1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Better logging about partials when logger to to debug

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-10-01 19:00:06 +00:00
parent e7afaf62bd
commit c69160a90d

View file

@ -54,7 +54,9 @@ module ActionView
add_counter_to_local_assigns!(partial_name, local_assigns) add_counter_to_local_assigns!(partial_name, local_assigns)
local_assigns[partial_name.intern] ||= object.is_a?(ActionView::Base::ObjectWrapper) ? object.value : object local_assigns[partial_name.intern] ||= object.is_a?(ActionView::Base::ObjectWrapper) ? object.value : object
render("#{path}/_#{partial_name}", local_assigns) ActionController::Base.benchmark("Rendered #{path}/_#{partial_name}", Logger::DEBUG, false) do
render("#{path}/_#{partial_name}", local_assigns)
end
end end
# Deprecated, use render :partial, :collection # Deprecated, use render :partial, :collection