- before_action :check_database_readable, :except => [:api_read, :api_data]
- before_action :check_database_writable, :only => [:api_create, :api_update, :api_delete]
- before_action :check_api_readable, :only => [:api_read, :api_data]
- before_action :check_api_writable, :only => [:api_create, :api_update, :api_delete]
- before_action :offline_redirect, :only => [:api_create, :api_delete, :api_data]
- around_action :api_call_handle_error
-
- def api_read
- trace = Trace.visible.find(params[:id])
+ before_action :offline_error, :only => [:create, :destroy]
+ skip_around_action :api_call_timeout, :only => :create