Sha256: 46f4b3c200919ee73bfe1819f62d6cf842a0ee7885a32fa76a653557b905ad20
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
module Devise module Async class Proxy # catches all devise emails def self.method_missing(method, *args, &block) new(method, args.first) end def initialize(method, resource) @method, @resource = method, resource end def deliver Worker.enqueue(@method, @resource.class.name, @resource.id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-async-0.1.0 | lib/devise/async/proxy.rb |
devise-async-0.0.2 | lib/devise/async/proxy.rb |