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:
parent
e7afaf62bd
commit
c69160a90d
1 changed files with 3 additions and 1 deletions
|
@ -54,8 +54,10 @@ 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
|
||||
|
||||
ActionController::Base.benchmark("Rendered #{path}/_#{partial_name}", Logger::DEBUG, false) do
|
||||
render("#{path}/_#{partial_name}", local_assigns)
|
||||
end
|
||||
end
|
||||
|
||||
# Deprecated, use render :partial, :collection
|
||||
def render_partial_collection(partial_name, collection, partial_spacer_template = nil, local_assigns = nil) #:nodoc:
|
||||
|
|
Loading…
Reference in a new issue