blob: 41feede7b44e7ca8fd7f5463e5c642af083f3a50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class CommentMailer < ApplicationMailer
def new_comment_email
@comment = params[:comment]
mail(to: @comment.blog.user.email, subject: "[Four Island] Comment on #{@comment.blog.title}")
end
def new_pending_comment_email
@comment = params[:comment]
mail(to: @comment.blog.user.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}")
end
def reply_comment_email
@comment = params[:comment]
mail(to: @comment.reply_to.email, subject: "[Four Island] Reply to your comment on #{@comment.blog.title}")
end
end
|