diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-08 23:04:25 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-08 23:04:25 -0700 |
commit | b5b1576aa9c5606a8ac9862b4a903aa5e196ef02 (patch) | |
tree | 3254cb1e1d729e3a85e053856b74adb6fe79999e /actionpack | |
parent | 791cccaedab9c3e975b00135db76047ad4435611 (diff) | |
download | rails-b5b1576aa9c5606a8ac9862b4a903aa5e196ef02.tar.gz rails-b5b1576aa9c5606a8ac9862b4a903aa5e196ef02.tar.bz2 rails-b5b1576aa9c5606a8ac9862b4a903aa5e196ef02.zip |
Ruby 1.9 compat: can't implicitly set instance var using block arg
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/render/partials.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb index 986d3af454..440836bfb1 100644 --- a/actionpack/lib/action_view/render/partials.rb +++ b/actionpack/lib/action_view/render/partials.rb @@ -232,8 +232,8 @@ module ActionView index = 0 - collection.map do |@object| - @path = partial_path + collection.map do |object| + @object, @path = object, partial_path template = passed_template || find @locals[template.counter_name] = index index += 1 |