Add a global timeout that is applied to most API requests.
[rails.git] / app / controllers / old_way_controller.rb
index 6131c9c3fac36f0a019f27ff197c5c41cc10abc8..1e3546a0d0f09b3bdf6e25b6de67ae6a0952cb83 100644 (file)
@@ -4,7 +4,7 @@ class OldWayController < ApplicationController
   session :off
   before_filter :check_api_readable
   after_filter :compress_output
-  around_filter :api_call_handle_error
+  around_filter :api_call_handle_error, :api_call_timeout
 
   def history
     way = Way.find(params[:id])