]> git.openstreetmap.org Git - rails.git/blobdiff - lib/geo_record.rb
Merge remote-tracking branch 'upstream/master' into routing
[rails.git] / lib / geo_record.rb
index 0d010eb869b6f6116c5024e2fa8bff300acf8d68..fbfb0c2ce07bed5e7ba39a4b0efebe899fd0c975 100644 (file)
@@ -5,7 +5,7 @@ module GeoRecord
   SCALE = 10000000
   
   def self.included(base)
-    base.scope :bbox, lambda { |bbox| base.where(OSM.sql_for_area(bbox)) }
+    base.scope :bbox, ->(bbox) { base.where(OSM.sql_for_area(bbox)) }
     base.before_save :update_tile
   end
 
@@ -45,4 +45,3 @@ private
     180/Math::PI * Math.log(Math.tan(Math::PI/4+a*(Math::PI/180)/2))
   end
 end
-