aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/render/partials.rb
diff options
context:
space:
mode:
authorJeff Kreeftmeijer <jeff@kreeftmeijer.nl>2010-05-15 13:25:48 +0200
committerJeremy Kemper <jeremy@bitsweat.net>2010-05-15 10:32:23 -0700
commitfa99de0bd054576336c940ca78f3d1b35b6e490e (patch)
treeb6e89f15b73624e6bf93f01bc4c24b909e2cdbb7 /actionpack/lib/action_view/render/partials.rb
parent3436fdfc12d58925e3d981e0afa61084ea34736c (diff)
downloadrails-fa99de0bd054576336c940ca78f3d1b35b6e490e.tar.gz
rails-fa99de0bd054576336c940ca78f3d1b35b6e490e.tar.bz2
rails-fa99de0bd054576336c940ca78f3d1b35b6e490e.zip
partial counters with :as [#2804 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib/action_view/render/partials.rb')
-rw-r--r--actionpack/lib/action_view/render/partials.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb
index 974345633c..6160a95e20 100644
--- a/actionpack/lib/action_view/render/partials.rb
+++ b/actionpack/lib/action_view/render/partials.rb
@@ -248,6 +248,7 @@ module ActionView
@collection.each do |object|
locals[counter_name] += 1
+ locals["#{as.to_s}_counter".to_sym] = locals[counter_name]
locals[as] = object
segments << template.render(@view, locals)