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

Fix Rails 6 deprecation warning #1447

Merged
merged 1 commit into from Oct 30, 2019

Conversation

santib
Copy link
Contributor

@santib santib commented Oct 23, 2019

When that code runs (ordering the index page in administrate dashboard) I'm getting the following deprecation warning
DEPRECATION WARNING: Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): "[schema].[table].[column]". Non-attribute arguments will be disallowed in Rails 6.0. This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql().

@nickcharlton nickcharlton merged commit 0e3966d into thoughtbot:master Oct 30, 2019
@nickcharlton
Copy link
Member

Thanks!

@dgarwood
Copy link

@nickcharlton do you know when this will be released as a gem version update?

@santib
Copy link
Contributor Author

santib commented Feb 3, 2020

@nickcharlton it'd be good to release this, otherwise I have no option but to use master when upgrading to Rails 6

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

3 participants