houdini/app/jobs/campaign_create_job.rb
2019-11-08 16:13:03 -06:00

13 lines
330 B
Ruby

class CampaignCreateJob < ApplicationJob
queue_as :default
def perform(campaign)
if campaign.child_campaign?
CampaignMailer.federated_creation_followup(campaign).deliver_later
else
CampaignMailer.creation_followup(campaign).deliver_later
end
FundraiserCreateJob.perform_later(campaign)
end
end