Skip to content

Commit

Permalink
Ruby 1.9 compat: can't implicitly set instance var using block arg
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Aug 9, 2009
1 parent 791ccca commit b5b1576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_view/render/partials.rb
Expand Up @@ -232,8 +232,8 @@ def render_collection(passed_template = nil, &block)

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
Expand Down

0 comments on commit b5b1576

Please sign in to comment.