journalduhacker/app/mailers/email_reply.rb
2012-08-24 11:41:30 -05:00

13 lines
330 B
Ruby

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