From 852d110f3509ed1522105a3e0d8f25f0443574c2 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 9 Jan 2014 15:25:25 -0500 Subject: [PATCH] Test email is now synchronous and ignores sidekiq queue. --- app/controllers/admin/email_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/email_controller.rb b/app/controllers/admin/email_controller.rb index 7a7a4260b90..4867fc9f2b3 100644 --- a/app/controllers/admin/email_controller.rb +++ b/app/controllers/admin/email_controller.rb @@ -11,7 +11,7 @@ class Admin::EmailController < Admin::AdminController def test params.require(:email_address) - Jobs.enqueue(:test_email, to_address: params[:email_address]) + Jobs::TestEmail.new.execute(to_address: params[:email_address]) render nothing: true end