about summary refs log tree commit diff stats
path: root/app/mailers/comment_mailer.rb
blob: e72b17de8461c9d80017923f72c388411dc68bfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class CommentMailer < ApplicationMailer
  def new_comment_email
    @comment = params[:comment]
    @admin = User.first # this is weird
    mail(to: @admin.email, subject: "[Four Island] Comment on #{@comment.blog.title}")
  end

  def new_pending_comment_email
    @comment = params[:comment]
    @admin = User.first # this is weird
    mail(to: @admin.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}")
  end
end