13 lines
330 B
Ruby
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
|