X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bed9cd00ed166ce346da4b8a9b654ddf86e64e70..50224b473bce736436d27c64bd46c1910e4d43ec:/lib/geo_record.rb 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