diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-16 14:59:55 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-16 14:59:55 -0300 |
commit | d4df7ce7b356835208141e6ac8e5ffb09ece8401 (patch) | |
tree | 2e1a0fe7be4725ecbbfe4345704afc4d5fa29b24 /actionview/lib/action_view/renderer | |
parent | 15155692b4cc9577def5c7ee80fd3d22c5c986b1 (diff) | |
download | rails-d4df7ce7b356835208141e6ac8e5ffb09ece8401.tar.gz rails-d4df7ce7b356835208141e6ac8e5ffb09ece8401.tar.bz2 rails-d4df7ce7b356835208141e6ac8e5ffb09ece8401.zip |
Fix typo on the variable name
Diffstat (limited to 'actionview/lib/action_view/renderer')
-rw-r--r-- | actionview/lib/action_view/renderer/partial_renderer.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb index eb8db16796..a4f6573601 100644 --- a/actionview/lib/action_view/renderer/partial_renderer.rb +++ b/actionview/lib/action_view/renderer/partial_renderer.rb @@ -422,16 +422,16 @@ module ActionView layout = find_template(layout, @template_keys) end - partial_interation = PartialIteration.new(@collection.size) - locals[iteration] = partial_interation + partial_iteration = PartialIteration.new(@collection.size) + locals[iteration] = partial_iteration @collection.map do |object| locals[as] = object - locals[counter] = partial_interation.index + locals[counter] = partial_iteration.index content = template.render(view, locals) content = layout.render(view, locals) { content } if layout - partial_interation.iterate! + partial_iteration.iterate! content end end @@ -441,19 +441,19 @@ module ActionView cache = {} keys = @locals.keys - partial_interation = PartialIteration.new(@collection.size) + partial_iteration = PartialIteration.new(@collection.size) @collection.map do |object| - index = partial_interation.index + index = partial_iteration.index path, as, counter, iteration = collection_data[index] locals[as] = object locals[counter] = index - locals[iteration] = partial_interation + locals[iteration] = partial_iteration template = (cache[path] ||= find_template(path, keys + [as, counter])) content = template.render(view, locals) - partial_interation.iterate! + partial_iteration.iterate! content end end |