diff options
author | Jamis Buck <jamis@37signals.com> | 2005-09-01 21:43:38 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-09-01 21:43:38 +0000 |
commit | 01af965a3e68f719fe9cfdce36a82ad8901fe7a7 (patch) | |
tree | 61677831a35ffded12a7c133ad31b4b7a98e5aff /actionpack/lib | |
parent | 49c67ea1b7411ea8c73fcba45fe15e76f8697282 (diff) | |
download | rails-01af965a3e68f719fe9cfdce36a82ad8901fe7a7.tar.gz rails-01af965a3e68f719fe9cfdce36a82ad8901fe7a7.tar.bz2 rails-01af965a3e68f719fe9cfdce36a82ad8901fe7a7.zip |
Make rendering an empty partial collection behave like :nothing => true #2080 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index 06dead1b23..e1dcd4ee9d 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -67,7 +67,7 @@ module ActionView collection_of_partials.push(render_partial(partial_name, element, local_assigns)) end - return nil if collection_of_partials.empty? + return " " if collection_of_partials.empty? if partial_spacer_template spacer_path, spacer_name = partial_pieces(partial_spacer_template) |