diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-13 13:18:18 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-13 13:18:18 -0400 |
commit | 26a7339889929025495df59776d1a33ca19c77ae (patch) | |
tree | c4d6fa581ac816fe97ace4bd9c7f5c6cacfceabd /app/mailers | |
parent | d365294db7edd79f01b51ac30413707a556f84bb (diff) | |
download | thoughts-26a7339889929025495df59776d1a33ca19c77ae.tar.gz thoughts-26a7339889929025495df59776d1a33ca19c77ae.tar.bz2 thoughts-26a7339889929025495df59776d1a33ca19c77ae.zip |
Pending comments also send you an email now
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 |