diff options
author | lizconlan <liz@mysociety.org> | 2014-07-28 12:12:50 +0100 |
---|---|---|
committer | lizconlan <liz@mysociety.org> | 2014-07-28 12:12:50 +0100 |
commit | 8b639ffa7417f146fd9e55ea1b009de75cd69819 (patch) | |
tree | 26713f0c51090c68dcd837cafc36d40f9dede464 /app/models/info_request.rb | |
parent | ff9be5046c4ad4c8812f7175acbf382ec37209aa (diff) | |
parent | 18d1dcc1a587fe4e56d11877ce8b1df86be0474f (diff) |
Merge branch 'issues/1418-update-described-state-via-api' into rails-3-develop
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index a2112a210..aed651ad3 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -115,6 +115,16 @@ class InfoRequest < ActiveRecord::Base states end + # Subset of states accepted via the API + def self.allowed_incoming_states + [ + 'waiting_response', + 'rejected', + 'successful', + 'partially_successful' + ] + end + # Possible reasons that a request could be reported for administrator attention def report_reasons [_("Contains defamatory material"), |