aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-22 17:24:40 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-22 17:55:05 +1100
commit57ed2c6f014e07d242ae7ffe147c1bd215764669 (patch)
tree2c5b7c741ee952746c23882a031c0a69af86f2e7 /app/models/info_request.rb
parentb730b71fe936de277b2285333ab84cf82deb681a (diff)
Reasons that request can be reported now stored in model
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index f63c10e0a..68b837c7d 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -108,6 +108,12 @@ class InfoRequest < ActiveRecord::Base
states
end
+ # Possible reasons that a request could be reported for administrator attention
+ def report_reasons
+ ["Contains defamatory material", "Not a valid request", "Request for personal information",
+ "Contains personal information", "Vexatious", "Other"]
+ end
+
def must_be_valid_state
errors.add(:described_state, "is not a valid state") if
!InfoRequest.enumerate_states.include? described_state