about summary refs log tree commit diff stats
path: root/app/mailers/comment_mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/comment_mailer.rb')
-rw-r--r--app/mailers/comment_mailer.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/mailers/comment_mailer.rb b/app/mailers/comment_mailer.rb index e72b17d..aeed1b0 100644 --- a/app/mailers/comment_mailer.rb +++ b/app/mailers/comment_mailer.rb
@@ -1,13 +1,11 @@
1class CommentMailer < ApplicationMailer 1class CommentMailer < ApplicationMailer
2 def new_comment_email 2 def new_comment_email
3 @comment = params[:comment] 3 @comment = params[:comment]
4 @admin = User.first # this is weird 4 mail(to: @comment.blog.user.email, subject: "[Four Island] Comment on #{@comment.blog.title}")
5 mail(to: @admin.email, subject: "[Four Island] Comment on #{@comment.blog.title}")
6 end 5 end
7 6
8 def new_pending_comment_email 7 def new_pending_comment_email
9 @comment = params[:comment] 8 @comment = params[:comment]
10 @admin = User.first # this is weird 9 mail(to: @comment.blog.user.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}")
11 mail(to: @admin.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}")
12 end 10 end
13end 11end