X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd6f00b069af5a7b87227ea4c3401dc461d7311a..50224b473bce736436d27c64bd46c1910e4d43ec:/lib/geo_record.rb?ds=inline diff --git a/lib/geo_record.rb b/lib/geo_record.rb index 2740eab0c..d44227dd8 100644 --- a/lib/geo_record.rb +++ b/lib/geo_record.rb @@ -53,6 +53,11 @@ private self.with_scope(:find => {:conditions => OSM.sql_for_area(minlat, minlon, maxlat, maxlon)}) do return self.find(:all, options) end + end + def find_by_area_no_quadtile(minlat, minlon, maxlat, maxlon, options) + self.with_scope(:find => {:conditions => OSM.sql_for_area_no_quadtile(minlat, minlon, maxlat, maxlon)}) do + return self.find(:all, options) + end end end end