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