Skip to content

Deprecation warnings when using Rails 5.2 #34

@mikaelbartlett

Description

@mikaelbartlett

"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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions