diff options
author | francis <francis> | 2008-08-31 14:08:55 +0000 |
---|---|---|
committer | francis <francis> | 2008-08-31 14:08:55 +0000 |
commit | 8b9f9f596058438732a4615531ada87e44ed6c8e (patch) | |
tree | f6dfa1c4d02a4d395e2dc4a798c11b3942f34f94 /app/models/user.rb | |
parent | 78e9614aeca6c627db434d15d299e096e2649474 (diff) |
Show annotations on user pages.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index b94fe8e34..f0416506e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -22,7 +22,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.65 2008-08-31 12:46:53 francis Exp $ +# $Id: user.rb,v 1.66 2008-08-31 14:08:55 francis Exp $ require 'digest/sha1' @@ -38,6 +38,7 @@ class User < ActiveRecord::Base has_many :user_info_request_sent_alerts has_many :post_redirects has_many :track_things, :foreign_key => 'tracking_user_id', :order => 'created_at desc' + has_many :comments, :order => 'created_at desc' attr_accessor :password_confirmation validates_confirmation_of :password, :message =>"^Please enter the same password twice" |