aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/render/partials.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-15 17:43:45 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-15 17:43:45 +0100
commit1c30ec23fef2479cd037945e57a74e5c89c9ece1 (patch)
tree35a2da13043525e640da09344a8c0a5b77259e31 /actionpack/lib/action_view/render/partials.rb
parenta0cdfdc771cd4034f69c9a08a188cf6ba7b110c2 (diff)
downloadrails-1c30ec23fef2479cd037945e57a74e5c89c9ece1.tar.gz
rails-1c30ec23fef2479cd037945e57a74e5c89c9ece1.tar.bz2
rails-1c30ec23fef2479cd037945e57a74e5c89c9ece1.zip
In heterogeneous collections, neither the @path nor the @template are available, so we need to tell that we are simply rendering a collection.
Diffstat (limited to 'actionpack/lib/action_view/render/partials.rb')
-rw-r--r--actionpack/lib/action_view/render/partials.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb
index 2a32e2428a..8c936ae09e 100644
--- a/actionpack/lib/action_view/render/partials.rb
+++ b/actionpack/lib/action_view/render/partials.rb
@@ -216,7 +216,7 @@ module ActionView
if @collection
ActiveSupport::Notifications.instrument("action_view.render_collection",
- :identifier => identifier, :count => @collection.size) do
+ :identifier => identifier || "collection", :count => @collection.size) do
render_collection
end
else