Add Active Job definitions for executing Mailbluster requests
This commit is contained in:
parent
9ae19c8db6
commit
671d010e68
3 changed files with 26 additions and 0 deletions
9
app/jobs/mailbluster_create_lead_job.rb
Normal file
9
app/jobs/mailbluster_create_lead_job.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class MailblusterCreateLeadJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(user)
|
||||
ApplicationController.helpers.create_lead(user)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue