From 1e33a67f9e3e282ce83c18127624f74bb5840549 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Mon, 25 Jul 2011 15:01:20 +0100 Subject: Rescue NameErrors when attempting to load custom states (for the case where the file exists, but it's empty) --- app/controllers/request_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 81dffaa80..80246c811 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -19,7 +19,7 @@ class RequestController < ApplicationController include RequestControllerCustomStates @@custom_states_loaded = true end - rescue MissingSourceFile + rescue MissingSourceFile, NameError end def show -- cgit v1.2.3