journalduhacker/app/mailers/email_reply.rb

13 lines
330 B
Ruby
Raw Normal View History

2012-07-03 18:59:50 +02:00
class EmailReply < ActionMailer::Base
default :from => "nobody@lobste.rs"
def reply(comment, user)
@comment = comment
@user = user
mail(:to => user.email, :from => "Lobsters <nobody@lobste.rs>",
:subject => "[Lobsters] Reply from #{comment.user.username} on " <<
"#{comment.story.title}")
end
end