diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-14 11:12:05 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-14 11:12:05 -0400 |
| commit | fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd (patch) | |
| tree | 27d42a442c000781d100dfa7fd8b976aefb03c31 /app/mailers | |
| parent | 0aace2986a9a7a6d4c84a9ba6819d3df7821e267 (diff) | |
| download | thoughts-fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd.tar.gz thoughts-fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd.tar.bz2 thoughts-fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd.zip | |
Added comment replying
Diffstat (limited to 'app/mailers')
| -rw-r--r-- | app/mailers/comment_mailer.rb | 5 |
1 files changed, 5 insertions, 0 deletions
| diff --git a/app/mailers/comment_mailer.rb b/app/mailers/comment_mailer.rb index aeed1b0..41feede 100644 --- a/app/mailers/comment_mailer.rb +++ b/app/mailers/comment_mailer.rb | |||
| @@ -8,4 +8,9 @@ class CommentMailer < ApplicationMailer | |||
| 8 | @comment = params[:comment] | 8 | @comment = params[:comment] |
| 9 | mail(to: @comment.blog.user.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}") | 9 | mail(to: @comment.blog.user.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}") |
| 10 | end | 10 | end |
| 11 | |||
| 12 | def reply_comment_email | ||
| 13 | @comment = params[:comment] | ||
| 14 | mail(to: @comment.reply_to.email, subject: "[Four Island] Reply to your comment on #{@comment.blog.title}") | ||
| 15 | end | ||
| 11 | end | 16 | end |
