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

Eliminate deprecation warnings in ActiveRecord 5.2 #296

Merged
merged 1 commit into from
Feb 2, 2018

Conversation

Envek
Copy link
Contributor

@Envek Envek commented Jan 10, 2018

Starting from Rails 5.2 passing raw SQL to methods like order is deprecated and in 6.0 it will be forbidden because of security concerns.

When users sure that passed string is safe, they must wrap it with Arel.sql.

Starting from Rails 5.2 passing raw SQL to methods like `order` is deprecated
and in 6.0 it will be forbidden because of security concerns.

When users sure that passed string is safe, they must wrap it with `Arel.sql`.
@Envek
Copy link
Contributor Author

Envek commented Feb 2, 2018

@mceachen, @seuros, could you please take a look?
Rails 5.2 Release Candidate 1 is released and many people will upgrade their apps soon.

@mceachen mceachen merged commit 217162c into ClosureTree:master Feb 2, 2018
@Envek Envek deleted the fix/rails-5-2-deprecations branch February 4, 2018 05:18
@timdown
Copy link

timdown commented Mar 1, 2018

Will there be a new release with this fix in?

@mceachen
Copy link
Collaborator

mceachen commented Mar 1, 2018

@seuros do you want to do a release (it'd be your first!)? I'm not super stoked to do one with the current travis failures--they're from pg.

@seuros
Copy link
Member

seuros commented Mar 1, 2018

Yes. I will handle this release

@johan-smits johan-smits mentioned this pull request Apr 10, 2018
SMaxOwok added a commit to ManifoldScholar/manifold that referenced this pull request Apr 3, 2019
Necessary to resolve deprecation warnings as a result of raw SQL in queries.
ClosureTree/closure_tree#296
SMaxOwok added a commit to ManifoldScholar/manifold that referenced this pull request Apr 3, 2019
Necessary to resolve deprecation warnings as a result of raw SQL in queries.
ClosureTree/closure_tree#296
SMaxOwok added a commit to ManifoldScholar/manifold that referenced this pull request Apr 4, 2019
Necessary to resolve deprecation warnings as a result of raw SQL in queries.
ClosureTree/closure_tree#296
SMaxOwok added a commit to ManifoldScholar/manifold that referenced this pull request Apr 4, 2019
Necessary to resolve deprecation warnings as a result of raw SQL in queries.
ClosureTree/closure_tree#296
zdavis pushed a commit to ManifoldScholar/manifold that referenced this pull request May 30, 2019
Necessary to resolve deprecation warnings as a result of raw SQL in queries.
ClosureTree/closure_tree#296
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.

4 participants