diff options
author | francis <francis> | 2008-04-03 15:29:50 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-03 15:29:50 +0000 |
commit | 2e57753854146b7e7e26d7e490ad2cdd49b06aa3 (patch) | |
tree | 5ea09ff9e1dfe4ef389fda890dae4969b5ca2011 /app/models/user.rb | |
parent | 7e0677c9c7fd5ba42fd5689057d9a9da3a0a68b0 (diff) |
Email alerts for tracking a particular request.
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 28b1e5b28..1efe0ad24 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -20,7 +20,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.44 2008-04-01 16:40:37 francis Exp $ +# $Id: user.rb,v 1.45 2008-04-03 15:29:51 francis Exp $ require 'digest/sha1' @@ -35,6 +35,7 @@ class User < ActiveRecord::Base has_many :info_requests has_many :user_info_request_sent_alerts has_many :post_redirects + has_many :track_things, :foreign_key => 'tracking_user_id' attr_accessor :password_confirmation validates_confirmation_of :password, :message =>"^Please enter the same password twice" |