change mail sending

This commit is contained in:
Ralf Teusner
2017-03-30 19:02:09 +02:00
parent a1b6927864
commit ed485f32e6
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class CommentsController < ApplicationController
@comment = Comment.new(comment_params_without_request_id)
if comment_params[:request_id]
UserMailer.got_new_comment(@comment, RequestForComment.find(comment_params[:request_id]), current_user)
UserMailer.got_new_comment(@comment, RequestForComment.find(comment_params[:request_id]), current_user).deliver_now
end
respond_to do |format|