module Devise module Async class Worker # Used is the internal interface for devise-async to enqueue notifications # to the desired backend. def self.enqueue(method, resource_class, resource_id, opts) backend_class.enqueue(method, resource_class, resource_id, opts) end private def self.backend_class Backend.for(Devise::Async.backend) end end end end