diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-10-30 15:07:47 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-10-30 15:07:47 -0500 |
commit | ec38c84ce1ff7f0888becc15e3f58337ca807e25 (patch) | |
tree | 2ef45c777eeef49d42f6fa4b1589f97ffad90435 /actionpack/lib/action_view | |
parent | ef53d915164da7f757d03c4a70fe38e374c08b14 (diff) | |
download | rails-ec38c84ce1ff7f0888becc15e3f58337ca807e25.tar.gz rails-ec38c84ce1ff7f0888becc15e3f58337ca807e25.tar.bz2 rails-ec38c84ce1ff7f0888becc15e3f58337ca807e25.zip |
Dup local assigns for partial collections so nil values doesn't get overwritten [#1250 state:resolved]
Diffstat (limited to 'actionpack/lib/action_view')
-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 373bb92dc4..8841099900 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -181,7 +181,7 @@ module ActionView ActionController::RecordIdentifier.partial_path(object, controller.class.controller_path) template = _pick_partial_template(_partial_path) local_assigns[template.counter_name] = index - result = template.render_partial(self, object, local_assigns, as) + result = template.render_partial(self, object, local_assigns.dup, as) index += 1 result end.join(spacer) |