diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-25 15:01:20 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2011-07-26 16:30:40 +0100 |
commit | 91ac8ef4cf0652d1632423d532032d11d4ddf409 (patch) | |
tree | 31b4298d656403c757b0178b7d80db961e2a80da /app/models/info_request.rb | |
parent | 5ad84d3ab83f4a7cb22fe69bbf5d6534683682af (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.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index f296c0ad1..de3b5bdc5 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 |