Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various deprecation fixes #38

Merged
merged 4 commits into from
May 20, 2020
Merged

Various deprecation fixes #38

merged 4 commits into from
May 20, 2020

Conversation

chewi
Copy link
Contributor

@chewi chewi commented Aug 30, 2018

Please look closely at the second commit as I'm not sure about it.

This section of code confuses me because it uses a long-winded method
to append the random clause to the orders even though orders are
normally appended anyway. I'm currently testing against AR 5.2.1 but
I'm fairly sure this has always been the case. I do recall a bug in
Squeel that caused orders to be prepended instead but I doubt that was
the reason the code was written this way. In any case, simply
appending in the usual manner deals with the deprecation message.
Raw SQL strings need to be wrapped in Arel.sql now.
@chewi
Copy link
Contributor Author

chewi commented Aug 30, 2018

The CI failues are not my fault.

@spilliton
Copy link
Owner

Thanks for the PR, can hopefully check this out sometime next week :)

@spilliton
Copy link
Owner

@chewi sorry this took so long, when you made this PR we had just had our first child and I was low and sleep and spare time, plus I was/am really out of practice with Ruby. In working on #40 we got the tests passing so I'm gonna merge your PR now and I'll fix if there are any issues that come up after the merge. Thanks for the help!

@spilliton spilliton merged commit f6d92e3 into spilliton:master May 20, 2020
@chewi
Copy link
Contributor Author

chewi commented May 20, 2020

No worries, I've been there. Second one on the way in August actually.

I moved to another company shortly after filing this but I still occasionally work with Rails so your merge is still appreciated.

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

Successfully merging this pull request may close these issues.

None yet

2 participants