makes the controller send the emails instead of Comment model
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user