aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorfrancis <francis>2008-10-03 17:48:37 +0000
committerfrancis <francis>2008-10-03 17:48:37 +0000
commita70a725316ec8c21522dd921c9a0c863577defe9 (patch)
tree193507eac3d3ead3a99ebf22a6d91be1388f624b /app/models
parent0fd88e98a36adf9dac96aac247cf9df2665cdb6d (diff)
Give link to user page if logged in user uses contact form.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/contact_mailer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/contact_mailer.rb b/app/models/contact_mailer.rb
index b35450cef..f0fb37d20 100644
--- a/app/models/contact_mailer.rb
+++ b/app/models/contact_mailer.rb
@@ -4,17 +4,17 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: contact_mailer.rb,v 1.7 2008-09-04 08:37:26 francis Exp $
+# $Id: contact_mailer.rb,v 1.8 2008-10-03 17:48:37 francis Exp $
class ContactMailer < ApplicationMailer
# Send message to administrator
- def message(name, email, subject, message, request_details)
+ def message(name, email, subject, message, logged_in_user)
@from = name + " <" + email + ">"
@recipients = contact_from_name_and_email
@subject = subject
@body = { :message => message,
- :request_details => request_details
+ :logged_in_user => logged_in_user
}
end