aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-01-31 18:18:31 -0500
committerGitHub <noreply@github.com>2017-01-31 18:18:31 -0500
commit087385a0946645744b7702b3e5af71a04c84e086 (patch)
treea41fc0dab3cd937d38ffc18675beee577cc365cf /actionview/lib
parent773e45a59163415e8bc247ebee1663c7e8113c81 (diff)
parent4cf981f84637022bcf225afd3f13e088d3b0d154 (diff)
downloadrails-087385a0946645744b7702b3e5af71a04c84e086.tar.gz
rails-087385a0946645744b7702b3e5af71a04c84e086.tar.bz2
rails-087385a0946645744b7702b3e5af71a04c84e086.zip
Merge pull request #27795 from meagar/fix-missing-partial-iteration
Fix missing partial iteration
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/renderer/partial_renderer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb
index 2bb4465131..647b15ea94 100644
--- a/actionview/lib/action_view/renderer/partial_renderer.rb
+++ b/actionview/lib/action_view/renderer/partial_renderer.rb
@@ -458,7 +458,7 @@ module ActionView
locals[counter] = index
locals[iteration] = partial_iteration
- template = (cache[path] ||= find_template(path, keys + [as, counter]))
+ template = (cache[path] ||= find_template(path, keys + [as, counter, iteration]))
content = template.render(view, locals)
partial_iteration.iterate!
content