Add a global timeout that is applied to most API requests.
[rails.git] / app / controllers / old_relation_controller.rb
index b98c9da4952b3a54840127e0ea454a0e0f70fe42..5bde0fe6c9367c7c11b0fedf1632383dd0e7d23d 100644 (file)
@@ -4,7 +4,7 @@ class OldRelationController < 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
     relation = Relation.find(params[:id])