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
|
respond_to :html, :js
|
||||||
|
|
||||||
def create
|
def create
|
||||||
unless @comment.save
|
if @comment.save
|
||||||
|
CommentNotifier.new(comment: @comment).process
|
||||||
|
else
|
||||||
render :new
|
render :new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user