diff options
Diffstat (limited to 'app/mailers')
| -rw-r--r-- | app/mailers/comment_mailer.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/app/mailers/comment_mailer.rb b/app/mailers/comment_mailer.rb index 363875a..e72b17d 100644 --- a/app/mailers/comment_mailer.rb +++ b/app/mailers/comment_mailer.rb | |||
| @@ -4,4 +4,10 @@ class CommentMailer < ApplicationMailer | |||
| 4 | @admin = User.first # this is weird | 4 | @admin = User.first # this is weird | 
| 5 | mail(to: @admin.email, subject: "[Four Island] Comment on #{@comment.blog.title}") | 5 | mail(to: @admin.email, subject: "[Four Island] Comment on #{@comment.blog.title}") | 
| 6 | end | 6 | end | 
| 7 | |||
| 8 | def new_pending_comment_email | ||
| 9 | @comment = params[:comment] | ||
| 10 | @admin = User.first # this is weird | ||
| 11 | mail(to: @admin.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}") | ||
| 12 | end | ||
| 7 | end | 13 | end | 
