From 4cda46df7b9c5493bfc49af70e5b27d66271a873 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 24 Jan 2014 14:57:21 -0800 Subject: [PATCH] Fix crash on error pages by removing before_filters that assume there is a current_user. --- services/api/app/controllers/application_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb index 62ed762a41..78284c89da 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -10,7 +10,9 @@ class ApplicationController < ActionController::Base before_filter :load_where_param, :only => :index before_filter :find_objects_for_index, :only => :index - before_filter :find_object_by_uuid, :except => [:index, :create] + before_filter :find_object_by_uuid, :except => [:index, :create, + :render_error, + :render_not_found] before_filter :reload_object_before_update, :only => :update attr_accessor :resource_attrs -- 2.39.5