From e5123a18e5bc25590d903e3fd55acc680db317ac Mon Sep 17 00:00:00 2001 From: Godwin Date: Sat, 2 Jul 2016 13:09:48 -0700 Subject: [PATCH] Fixed mailer --- app/controllers/application_controller.rb | 6 +++--- app/controllers/conferences_controller.rb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ba200b1..95b949a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -138,7 +138,7 @@ class ApplicationController < LinguaFrancaApplicationController request, params, current_user, - ).deliver_now if Rails.env.preview? || Rails.env.production? + ).deliver_now! if Rails.env.preview? || Rails.env.production? end render json: {} end @@ -193,7 +193,7 @@ class ApplicationController < LinguaFrancaApplicationController request, params, current_user, - ).deliver_now if Rails.env.preview? || Rails.env.production? + ).deliver_now! if Rails.env.preview? || Rails.env.production? end # raise the error if we are in development so that we can debug it @@ -343,7 +343,7 @@ class ApplicationController < LinguaFrancaApplicationController request, params, current_user, - ).deliver_now if Rails.env.preview? || Rails.env.production? + ).deliver_now! if Rails.env.preview? || Rails.env.production? logger.info "Missing translation found for: #{key}" end end diff --git a/app/controllers/conferences_controller.rb b/app/controllers/conferences_controller.rb index 2609d5c..1e17173 100644 --- a/app/controllers/conferences_controller.rb +++ b/app/controllers/conferences_controller.rb @@ -392,7 +392,7 @@ class ConferencesController < ApplicationController @subject, @content, current_user, - @this_conference).deliver_now + @this_conference).deliver_now! elsif params[:button] == 'preview' @email_sent = :preview elsif params[:button] == 'send' @@ -1006,7 +1006,7 @@ class ConferencesController < ApplicationController @subject, @body, current_user, - @this_conference).deliver_now + @this_conference).deliver_now! end return render 'conferences/register' when 'locations'