class Devise::Async::Backend::SuckerPunch

Public Class Methods

enqueue(*args) click to toggle source
# File lib/devise/async/backend/sucker_punch.rb, line 9
def self.enqueue(*args)
  new.async.perform(*args)
end

Public Instance Methods

perform(method, resource_class, resource_id, *args) click to toggle source

Return the connection to the pool after we're done with it see: github.com/brandonhilkert/sucker_punch#usage

Calls superclass method Devise::Async::Backend::Base#perform
# File lib/devise/async/backend/sucker_punch.rb, line 15
def perform(method, resource_class, resource_id, *args)
  ActiveRecord::Base.connection_pool.with_connection do
    super
  end
end