diff options
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index a1ba60d560..f0f51e5176 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -107,17 +107,18 @@ module ActionView case partial_path when String, Symbol, NilClass path, partial_name = partial_pieces(partial_path) + full_partial_path = File.join(path, "_#{partial_name}") object = extracting_object(partial_name, object_assigns) local_assigns = local_assigns ? local_assigns.clone : {} add_counter_to_local_assigns!(partial_name, local_assigns) add_object_to_local_assigns!(partial_name, local_assigns, object) if logger && logger.debug? - ActionController::Base.benchmark("Rendered #{path}/_#{partial_name}", Logger::DEBUG, false) do - render("#{path}/_#{partial_name}", local_assigns) + ActionController::Base.benchmark("Rendered #{full_partial_path}", Logger::DEBUG, false) do + render(full_partial_path, local_assigns) end else - render("#{path}/_#{partial_name}", local_assigns) + render(full_partial_path, local_assigns) end when ActionView::Helpers::FormBuilder builder_partial_path = partial_path.class.to_s.demodulize.underscore.sub(/_builder$/, '') |