From 51f9c931ea47034bcedd5196a783262a4530386d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 13 May 2005 16:27:36 +0000 Subject: Fixed that render_partial_collection should always return a string (and not sometimes an array, despite <%= %> not caring) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/partials.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/partials.rb') diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index fa12067c82..35691aaf81 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -59,11 +59,12 @@ module ActionView end return nil if collection_of_partials.empty? + if partial_spacer_template spacer_path, spacer_name = partial_pieces(partial_spacer_template) collection_of_partials.join(render("#{spacer_path}/_#{spacer_name}")) else - collection_of_partials + collection_of_partials.join end end -- cgit v1.2.3