aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r--app/models/comment.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index a69284ae7..6596fe944 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -19,9 +19,11 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: comment.rb,v 1.8 2008-10-28 13:04:20 francis Exp $
+# $Id: comment.rb,v 1.9 2008-12-02 12:41:33 francis Exp $
class Comment < ActiveRecord::Base
+ strip_attributes!
+
belongs_to :user
#validates_presence_of :user # breaks during construction of new ones :(