diff options
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/comment_mailer.rb | 6 |
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 @@ | |||
1 | class CommentMailer < ApplicationMailer | 1 | class 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 |
13 | end | 11 | end |