X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/82f3dc682302047781917e68c813dfe0e056fbda..6ca22de4f2c68e4b14a6e2f0938a8657c33adc31:/app/models/concerns/geo_record.rb diff --git a/app/models/concerns/geo_record.rb b/app/models/concerns/geo_record.rb index 06049c295..dbda2960f 100644 --- a/app/models/concerns/geo_record.rb +++ b/app/models/concerns/geo_record.rb @@ -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