aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user_info_request_sent_alert.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-02-22 01:58:36 +0000
committerfrancis <francis>2008-02-22 01:58:36 +0000
commit712200c7531958860e9a85ff812d1aea29d2fe77 (patch)
tree8c8c58657679eca7d0fb9d392cfea3638c1ece92 /app/models/user_info_request_sent_alert.rb
parent6c8f0e9b5780b31ada206ec29a27d9ad7af0f226 (diff)
When a response is overdue, email the request creator to tell them so they can send a followup.
Diffstat (limited to 'app/models/user_info_request_sent_alert.rb')
-rw-r--r--app/models/user_info_request_sent_alert.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/models/user_info_request_sent_alert.rb b/app/models/user_info_request_sent_alert.rb
new file mode 100644
index 000000000..8a272d274
--- /dev/null
+++ b/app/models/user_info_request_sent_alert.rb
@@ -0,0 +1,19 @@
+# models/user_info_request_sent_alert.rb:
+# Whether an alert has been sent to this user for this info_request, for a
+# given type of alert.
+#
+# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
+# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
+#
+# $Id: user_info_request_sent_alert.rb,v 1.1 2008-02-22 01:58:36 francis Exp $
+
+class UserInfoRequestSentAlert < ActiveRecord::Base
+ belongs_to :user
+ belongs_to :info_request
+
+ validates_inclusion_of :alert_type, :in => [
+ 'overdue_1' # tell user that info request has become overdue
+ ]
+end
+
+