diff options
Diffstat (limited to 'app/controllers/comments_controller.rb')
| -rw-r--r-- | app/controllers/comments_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
| diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index c66365b..a444dba 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb | |||
| @@ -46,6 +46,8 @@ class CommentsController < ApplicationController | |||
| 46 | 46 | ||
| 47 | if @comment.status == :published | 47 | if @comment.status == :published |
| 48 | CommentMailer.with(comment: @comment).new_comment_email.deliver_later | 48 | CommentMailer.with(comment: @comment).new_comment_email.deliver_later |
| 49 | else | ||
| 50 | CommentMailer.with(comment: @comment).new_pending_comment_email.deliver_later | ||
| 49 | end | 51 | end |
| 50 | else | 52 | else |
| 51 | flash.alert = "Error posting comment." | 53 | flash.alert = "Error posting comment." |
