Rescue LoadError instead of MissingSourceFile
MissingSourceFile is just an alias for LoadError in rails 4.2 and in rails 5.0 it is no longer present.
This commit is contained in:
parent
b00b9ce626
commit
28d902a1bb
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
module QuadTile
|
||||
begin
|
||||
require "quad_tile/quad_tile_so"
|
||||
rescue MissingSourceFile
|
||||
rescue LoadError
|
||||
def self.tile_for_point(lat, lon)
|
||||
x = ((lon.to_f + 180) * 65535 / 360).round
|
||||
y = ((lat.to_f + 90) * 65535 / 180).round
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue