# File lib/devise/async/backend/sucker_punch.rb, line 9 def self.enqueue(*args) new.async.perform(*args) end
Return the connection to the pool after we're done with it see: github.com/brandonhilkert/sucker_punch#usage
# 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