diff options
author | David Cabo <david@calibea.com> | 2011-07-23 21:21:49 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-07-23 21:21:49 +0200 |
commit | 40979d7966fd148ab73a5c9d1a68c6b57d8f9756 (patch) | |
tree | c6ddc9dc22e30668da72b277368c33fb34ecd8c0 /app/controllers/request_controller.rb | |
parent | c0b5dc2438f1d57a6a7564de320ad58c15861459 (diff) |
catch MissingSourceFile instead of NameError when including custom states, in order to handle the case when file is not present
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |