aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-07-23 21:21:49 +0200
committerDavid Cabo <david@calibea.com>2011-07-23 21:21:49 +0200
commit40979d7966fd148ab73a5c9d1a68c6b57d8f9756 (patch)
treec6ddc9dc22e30668da72b277368c33fb34ecd8c0 /app/models/info_request.rb
parentc0b5dc2438f1d57a6a7564de320ad58c15861459 (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/models/info_request.rb')
-rw-r--r--app/models/info_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 582e7aab9..9182b6ae7 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -112,7 +112,7 @@ class InfoRequest < ActiveRecord::Base
include InfoRequestCustomStates
@@custom_states_loaded = true
end
- rescue NameError
+ rescue MissingSourceFile
end
# only check on create, so existing models with mixed case are allowed