Sha256: 8548d9e5ce8e777c95878a5a96521a8847f4d9e45dc5def0e1165fc0c4721f10

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise-async-0.6.0 lib/devise/async/worker.rb