Skip to content
Snippets Groups Projects
Commit 0ab48006 authored by Steven Harman's avatar Steven Harman
Browse files

Make #near_scope_options public for Rails 5.2

Rails 5.2 changed the receiver within a scope from `klass` to
`relation`. With that, we no longer have private access to
Geocoder::Store::ActiveRecord#near_scope_options, and so must make it
public.

see: https://github.com/rails/rails/pull/29301
parent 81c97590
No related branches found
No related tags found
No related merge requests found
...@@ -87,8 +87,6 @@ module Geocoder::Store ...@@ -87,8 +87,6 @@ module Geocoder::Store
end end
end end
private # ----------------------------------------------------------------
## ##
# Get options hash suitable for passing to ActiveRecord.find to get # Get options hash suitable for passing to ActiveRecord.find to get
# records within a radius (in kilometers) of the given point. # records within a radius (in kilometers) of the given point.
...@@ -168,6 +166,8 @@ module Geocoder::Store ...@@ -168,6 +166,8 @@ module Geocoder::Store
} }
end end
private # ----------------------------------------------------------------
## ##
# SQL for calculating distance based on the current database's # SQL for calculating distance based on the current database's
# capabilities (trig functions?). # capabilities (trig functions?).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment