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

Deprecation warnings when using Rails 5.2 #34

Open
mikaelbartlett opened this issue Apr 11, 2018 · 0 comments
Open

Deprecation warnings when using Rails 5.2 #34

mikaelbartlett opened this issue Apr 11, 2018 · 0 comments

Comments

@mikaelbartlett
Copy link
Contributor

"DEPRECATION WARNING: Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): "earth_distance(ll_to_earth("places"."latitude", "places"."longitude"), ll_to_earth(57.707935, 11.958817)) ASC". 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()."

Get this warning. I'll see if I can create a pull request for this small issue.

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

No branches or pull requests

1 participant