3 ms·
It's nice to see the `order` stuff reverted. It would be a boon to scopes though, so I like the idea, but backwards compatibility here is key.
by 1qaz2wsx3edc 13y ago
It's nice to see the `order` stuff reverted. It would be a boon to scopes though, so I like the idea, but backwards compatibility here is key.
- josephlord 13y agoThe logic of the 4.0.0 way was better as the conceptual order of operation was correct. I don't have legacy app that needs major modification though. Do you know off the top of your head if reorder will behave as order does in 4.0.0 (including nested scopes and associations)? [Edit: It doesn't look like reorder does the job as it just drops existing orderings so you can't have a sequence of such calls. Don't think I like the reversion better to fix the API and the applications at migration to Rails 4 rather than persist the mistake.]