Test email is now synchronous and ignores sidekiq queue.

This commit is contained in:
Robin Ward 2014-01-09 15:25:25 -05:00
parent 2ee3859c08
commit 852d110f35
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class Admin::EmailController < Admin::AdminController
def test def test
params.require(:email_address) 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 render nothing: true
end end