Add a global timeout that is applied to most API requests.
[rails.git] / app / controllers / api_controller.rb
index ec5674e94542487074ca29d986161762b357fea8..285558bcfc490537e54a22c3c55d61b0c27e0a30 100644 (file)
@@ -3,6 +3,7 @@ class ApiController < ApplicationController
   session :off
   before_filter :check_api_readable, :except => [:capabilities]
   after_filter :compress_output
+  around_filter :api_call_handle_error, :api_call_timeout
 
   # Help methods for checking boundary sanity and area size
   include MapBoundary