about summary refs log tree commit diff stats
path: root/app/mailers/comment_mailer.rb
blob: 363875a9f2c46dff7d7b8ef8f5f9540582e35a50 (plain) (blame)
1
2
3
4
5
6
7
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
end