Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9 compat: can't implicitly set instance var using block arg

  • Loading branch information...
commit b5b1576aa9c5606a8ac9862b4a903aa5e196ef02 1 parent 791ccca
@jeremy jeremy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/render/partials.rb
View
4 actionpack/lib/action_view/render/partials.rb
@@ -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

0 comments on commit b5b1576

Please sign in to comment.
Something went wrong with that request. Please try again.