From e7afb293c9185affff4df0d5befd7194c266322b Mon Sep 17 00:00:00 2001 From: Torsten Date: Tue, 24 Jan 2023 22:28:18 +0200 Subject: [PATCH] fix async --- config/application.rb | 2 ++ config/initializers/devise.rb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 1a171d8..a46ccab 100644 --- a/config/application.rb +++ b/config/application.rb @@ -26,6 +26,8 @@ module Volunteers config.hosts << "green-machine.local" #our "staging" config.hosts << "volunteers.hubfeenix.fi" #production + config.active_job.queue_adapter = :sucker_punch + # Configuration for the application, engines, and railties goes here. # # These settings can be overridden in specific environments using the files diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 5747dc3..0c3b340 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -309,4 +309,6 @@ Devise.setup do |config| # changed. Defaults to true, so a user is signed in automatically after changing a password. # config.sign_in_after_change_password = true end -Devise::Async.backend = :sucker_punch +Devise::Async.setup do |config| + config.enabled = true +end