makes the controller send the emails instead of Comment model

This commit is contained in:
David Gil
2015-09-10 18:47:45 +02:00
parent d9300f1c10
commit 3f652262e7

View File

@@ -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