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 end