]> git.openstreetmap.org Git - rails.git/blobdiff - lib/geo_record.rb
Update to Leaflet 0.7.1
[rails.git] / lib / geo_record.rb
index 0c261dc69c8d3330f5ad4ea17b603e8a848dd9e1..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