Avoid ordering points from public and private traces

Closes #2046
This commit is contained in:
Tom Hughes 2018-11-07 08:57:14 +00:00
parent a39c645602
commit cdb42d2a6c
4 changed files with 14 additions and 8 deletions

View file

@ -22,7 +22,7 @@ module GeoRecord
SCALE = 10000000
included do
scope :bbox, ->(bbox) { where(OSM.sql_for_area(bbox)) }
scope :bbox, ->(bbox) { where(OSM.sql_for_area(bbox, "#{table_name}.")) }
before_save :update_tile
end