activerecord-postgres-earthdistance
activerecord-postgres-earthdistance copied to clipboard
Deprecation warnings when using Rails 5.2
"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.