From ce2bd095d9c40e073f08f63102786ddb62203eac Mon Sep 17 00:00:00 2001 From: David Cabo Date: Sat, 23 Jul 2011 21:21:49 +0200 Subject: catch MissingSourceFile instead of NameError when including custom states, in order to handle the case when file is not present --- 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 441ddc417..81dffaa80 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 NameError + rescue MissingSourceFile end def show -- cgit v1.2.3