aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/outgoing_message.rb5
-rw-r--r--app/models/user.rb4
-rw-r--r--todo.txt1
3 files changed, 3 insertions, 7 deletions
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb
index 07a916b73..ef768955d 100644
--- a/app/models/outgoing_message.rb
+++ b/app/models/outgoing_message.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: outgoing_message.rb,v 1.2 2007-09-11 06:42:40 francis Exp $
+# $Id: outgoing_message.rb,v 1.3 2007-09-11 15:26:12 francis Exp $
class OutgoingMessage < ActiveRecord::Base
belongs_to :info_request
@@ -15,8 +15,5 @@ class OutgoingMessage < ActiveRecord::Base
validates_inclusion_of :status, :in => ['ready', 'sent', 'failed']
validates_inclusion_of :message_type, :in => ['initial_request'] #, 'complaint']
-
- belongs_to :recipient, :polymorphic => true
-
end
diff --git a/app/models/user.rb b/app/models/user.rb
index adf2d1592..75397b33b 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: user.rb,v 1.4 2007-09-11 15:23:59 francis Exp $
+# $Id: user.rb,v 1.5 2007-09-11 15:26:12 francis Exp $
require 'digest/sha1'
@@ -14,7 +14,7 @@ class User < ActiveRecord::Base
validates_presence_of :name
- has_many :user
+ has_many :info_request
attr_accessor :password_confirmation
validates_confirmation_of :password
diff --git a/todo.txt b/todo.txt
index 5a7de82f9..d9f99529b 100644
--- a/todo.txt
+++ b/todo.txt
@@ -1,7 +1,6 @@
Give a better login dialog
Tidy up error message text (like "body must be filled in") on info request form
-Check have validates_presence_of for every belongs_to
Check using :string rather than :text for definitely limited fields like "status"
IF just title is blank says "Info request must be filled in"