]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Use OSM::Timer (and hence SystemTimer) consistently
[rails.git] / app / helpers / application_helper.rb
index b256dac4c8fca11a91a95c16658138b5bb20fa55..c7187c31d62e932e94047f52ec222c4d9d221b3c 100644 (file)
@@ -89,7 +89,7 @@ module ApplicationHelper
     url = "http://nominatim.openstreetmap.org/reverse?lat=#{lat}&lon=#{lon}&zoom=#{zoom}&accept-language=#{language}"
 
     begin
-      response = Timeout::timeout(4) do
+      response = OSM::Timer.timeout(4) do
         REXML::Document.new(Net::HTTP.get(URI.parse(url)))
       end
     rescue Exception