aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-25 15:01:20 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-07-25 15:01:20 +0100
commit1e33a67f9e3e282ce83c18127624f74bb5840549 (patch)
tree1801cdcd7e6c6d470c366c997e0097116ebe6e53 /app/models/info_request.rb
parenta51aa8a93246e6c10efec14dec8efbdf3301db5f (diff)
Rescue NameErrors when attempting to load custom states (for the case where the file exists, but it's empty)
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 e6a520fd2..209954b16 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 MissingSourceFile
+ rescue MissingSourceFile, NameError
end
# only check on create, so existing models with mixed case are allowed