diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-02 15:15:05 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-02 15:15:05 +0100 |
commit | d6a5e30665c9642b5d9977e1caf7f4f8a32f8b84 (patch) | |
tree | af4693ac9f8d878f3d6c83ede5b8c59e43147b13 /app/controllers/application_controller.rb | |
parent | a7073881fed6ec3f46841da96380d4b5643393a2 (diff) | |
parent | 2a1e80d1917e26caf13a20c199f5333be51caac0 (diff) |
Merge branch 'purge-requests' into develop
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0ec8e206e..0d0cca3e4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # controllers/application.rb: # Parent class of all controllers in FOI site. Filters added to this controller # apply to all controllers in the application. Likewise, all the methods added @@ -543,16 +544,6 @@ class ApplicationController < ActionController::Base return country end - def quietly_try_to_open(url) - begin - result = open(url).read.strip - rescue OpenURI::HTTPError, SocketError, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH - logger.warn("Unable to open third-party URL #{url}") - result = "" - end - return result - end - # URL generating functions are needed by all controllers (for redirects), # views (for links) and mailers (for use in emails), so include them into # all of all. |