diff options
author | francis <francis> | 2008-08-22 04:18:53 +0000 |
---|---|---|
committer | francis <francis> | 2008-08-22 04:18:53 +0000 |
commit | 18338f6f9564093521ee0363bf475cc2d0dee040 (patch) | |
tree | e517f33c3e48c0f7940f86a4f8114860eb7c8cf6 | |
parent | 5ded8e6af025a87c66b36ce2781db6c0b3241bed (diff) |
And here too
-rw-r--r-- | app/models/comment.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb index c82bb64ce..a8e338a70 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -19,7 +19,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: comment.rb,v 1.1 2008-08-13 01:39:41 francis Exp $ +# $Id: comment.rb,v 1.2 2008-08-22 04:18:53 francis Exp $ class Comment < ActiveRecord::Base belongs_to :user @@ -28,6 +28,8 @@ class Comment < ActiveRecord::Base validates_inclusion_of :comment_type, :in => [ 'request' ] belongs_to :info_request + has_many :info_request_events # in practice only ever has one + def body ret = read_attribute(:body) if ret.nil? |