This project is archived and is in readonly mode.
Add :from scoping respect to Calculations module
-
Pratik
- Milestone cleared.
- State changed from new to incomplete
- Assigned user set to Pratik
Looks good. Missing tests.
Thanks.
-
CancelProfileIsBroken
- Tag changed from activerecord, calculations, named_scope, patch, scope to activerecord, bugmash, calculations, named_scope, patch, scope
-
Matt Duncan
+1 Although I don't see a lot of use-cases for this I think it's good to be consistent. I've added a test, if anyone has thoughts on how this could be better tested please let me know.
I've attached a patch.
-
José Valim
- Assigned user changed from Pratik to Michael Koziarski
- State changed from incomplete to new
-
Matt Duncan
#2823 Calculations break with multi-column :select argument is related to this also
-
Jeremy Kemper
(+1 though)
-
Matt Duncan
I've attached a patch rebased against the current master.
-
Matt Duncan
Lets try that again with the correct patch...
-
Jeremy Kemper
Ah, Michael already committed this but didn't cherry-pick to 2-3-stable.
-
Steve St. Martin
so does this need a patch against 2-3-stable?
-
Michael Koziarski
Yes I did... github's just way behind.
-
Michael Koziarski
- Tag changed from activerecord, bugmash, calculations, named_scope, patch, scope to activerecord, calculations, named_scope, patch, scope
- State changed from open to resolved
-
Repository
- State changed from resolved to committed
(from [3b3798506b403911665c3c24fd055b75d6f6a44f]) Adding :from scoping to ActiveRecord calculations
Signed-off-by: Michael Koziarski michael@koziarski.com
[#1229 Add :from scoping respect to Calculations module state:committed] http://github.com/rails/rails/commit/3b3798506b403911665c3c24fd055b... -
Repository
(from [45f5bdfbc7fc1ee1fbc23525a112062c8b31d539]) Adding :from scoping to ActiveRecord calculations
Signed-off-by: Michael Koziarski michael@koziarski.com
[#1229 Add :from scoping respect to Calculations module state:committed] http://github.com/rails/rails/commit/45f5bdfbc7fc1ee1fbc23525a11206...
