From 28d902a1bb9093d161aae99bd7e5c3dc9d05e3e1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 2 Jun 2017 15:47:52 +0100 Subject: [PATCH] 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. --- lib/quad_tile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quad_tile.rb b/lib/quad_tile.rb index 347e7a817..931ec04a3 100644 --- a/lib/quad_tile.rb +++ b/lib/quad_tile.rb @@ -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 -- 2.39.5