more testing

This commit is contained in:
maxwell 2010-11-04 17:15:04 -07:00
parent 53b25728ce
commit 42c24e2b04

View file

@ -7,10 +7,11 @@ class Notifier < ActionMailer::Base
def new_request(recipient_id, sender_id) def new_request(recipient_id, sender_id)
@receiver = User.find_by_id(recipient_id) @receiver = User.find_by_id(recipient_id)
@sender = Person.find_by_id(sender_id) @sender = Person.find_by_id(sender_id)
puts "#{@receiver}"
puts "#{@sender}"
attachments.inline['diaspora_white_on_grey.png'] = ATTACHMENT attachments.inline['diaspora_white_on_grey.png'] = ATTACHMENT
mail(:to => "#{recipient.real_name} <#{recipient.email}>", mail(:to => "#{@receiver.real_name} <#{@reciever.email}>",
:subject => "new Diaspora* friend request from #{@sender.real_name}", :host => APP_CONFIG[:terse_pod_url]) :subject => "new Diaspora* friend request from #{@sender.real_name}", :host => APP_CONFIG[:terse_pod_url])
end end
@ -18,9 +19,10 @@ class Notifier < ActionMailer::Base
@receiver = User.find_by_id(recipient_id) @receiver = User.find_by_id(recipient_id)
@sender = Person.find_by_id(sender_id) @sender = Person.find_by_id(sender_id)
@aspect = Aspect.find_by_id(aspect_id) @aspect = Aspect.find_by_id(aspect_id)
puts "fooooo"
attachments.inline['diaspora_white_on_grey.png'] = ATTACHMENT attachments.inline['diaspora_white_on_grey.png'] = ATTACHMENT
mail(:to => "#{recipient.real_name} <#{recipient.email}>", mail(:to => "#{@receiver.real_name} <#{@receiver.email}>",
:subject => "#{@sender.real_name} has accepted your friend request on Diaspora*", :host => APP_CONFIG[:terse_pod_url]) :subject => "#{@sender.real_name} has accepted your friend request on Diaspora*", :host => APP_CONFIG[:terse_pod_url])
end end