This project is archived and is in readonly mode.
Partial collection counter variable improperly named using :as
-
Dan Pickett
- Tag changed from 2-3-stable, partial, partial_counter, render to 2-3-stable, bugmash, partial, partial_counter, render
-
Jeff Kreeftmeijer
- Tag changed from 2-3-stable, bugmash, partial, partial_counter, render to 2-3-stable, bugmash, master, partial, partial_counter, render, verified
Verified on master and 2-3-stable using the code snippet Graham provided.
-
Jeff Kreeftmeijer
I've attached a patch that allows you to use
cheesecake_counterin addition toitem_counterin the above example for master. I'm working on a patch for 2-3-stable as we speak. -
Jeff Kreeftmeijer
And here's the patch for 2-3-stable. :)
-
Jeff Kreeftmeijer
Sorry, was using wrong ticket numbers in my commit messages so I removed the patches. Here they are again.
-
Anil Wadghule
+1 for this patch. I verified it against Rails master. It definitely helps in improving readability of code.
-
Rizwan Reza
- Tag changed from 2-3-stable, bugmash, master, partial, partial_counter, render, verified to 2-3-stable, bugmash, bugmash-review, master, partial, partial_counter, render, verified
- State changed from new to verified
-
Jeremy Kemper
- Milestone changed from 3.x to 2.3.6
-
Repository
- State changed from verified to resolved
(from [fa99de0bd054576336c940ca78f3d1b35b6e490e]) partial counters with :as [#2804 Partial collection counter variable improperly named using :as state:resolved]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/fa99de0bd054576336c940ca78f3d1... -
Repository
(from [2de364636c06487faf48cbf9198bccd90a02eaf8]) partial counters with :as [#2804 Partial collection counter variable improperly named using :as state:resolved]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/2de364636c06487faf48cbf9198bcc... -
Rizwan Reza
- Tag changed from 2-3-stable, bugmash, bugmash-review, master, partial, partial_counter, render, verified to 2-3-stable, master, partial, partial_counter, render, verified
-
Jeff Kreeftmeijer
Needed to check if
asis set before trying to create a counter for it. I’ve attached a patch. :) -
Repository
- State changed from incomplete to resolved
(from [5d7ad7ba41c1c4298ad6467d63ee20e6c6acdbfd]) make sure
asis set before trying to build an #{as}_counter. [#2804 Partial collection counter variable improperly named using :as state:resolved]Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/5d7ad7ba41c1c4298ad6467d63ee20... -
Repository
(from [da90fe94662b338a2430e99ff0d3298059a28a51]) make sure
asis set before trying to build an #{as}_counter. [#2804 Partial collection counter variable improperly named using :as state:resolved]Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/da90fe94662b338a2430e99ff0d329...
