diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-01 19:00:06 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-01 19:00:06 +0000 |
commit | c69160a90daade9c4c638fcc9fc181071109913e (patch) | |
tree | b7c0538a6a1c5474cc3c9163f72180aa444e636a /actionpack/lib/action_view | |
parent | e7afaf62bd9f6d3e7e7bf8b37d54d157ac6a3d6d (diff) | |
download | rails-c69160a90daade9c4c638fcc9fc181071109913e.tar.gz rails-c69160a90daade9c4c638fcc9fc181071109913e.tar.bz2 rails-c69160a90daade9c4c638fcc9fc181071109913e.zip |
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
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index f4ae2af51d..998956979d 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -54,7 +54,9 @@ module ActionView add_counter_to_local_assigns!(partial_name, local_assigns) 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 # Deprecated, use render :partial, :collection |