X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1f8a68371ad34594cce4aadf5fef229588fd4ddc..fb4d003ebee8842ace3807bb1a60b9b36d94723e:/lib/geo_record.rb diff --git a/lib/geo_record.rb b/lib/geo_record.rb index 2740eab0c..4aa45531f 100644 --- a/lib/geo_record.rb +++ b/lib/geo_record.rb @@ -54,6 +54,12 @@ private 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