Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

fix for last being broken with reorder descending #337

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ashanbrown
Copy link

This is very speculative so I'd appreciate if @bigxiang could take a look. You can see my failing test in the pull request.

The gist is that this is broken:

   klass.reorder(column: :desc).last

I don't really understand the changes (apparently related to reorder(nil)) that may have introduced this problem to begin with. It would probably make sense to run the entire activerecord test suite against squeel just to make sure this fix is safe. Don't know if that's easy to do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants