parent
a39c645602
commit
cdb42d2a6c
4 changed files with 14 additions and 8 deletions
|
@ -22,7 +22,7 @@ module GeoRecord
|
|||
SCALE = 10000000
|
||||
|
||||
included do
|
||||
scope :bbox, ->(bbox) { where(OSM.sql_for_area(bbox)) }
|
||||
scope :bbox, ->(bbox) { where(OSM.sql_for_area(bbox, "#{table_name}.")) }
|
||||
before_save :update_tile
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue