diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 358ff5516..1573ed590 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -7,7 +7,9 @@ class CommentsController < ApplicationController respond_to :html, :js def create - unless @comment.save + if @comment.save + CommentNotifier.new(comment: @comment).process + else render :new end end