houdini/app/jobs/campaign_create_job.rb

14 lines
330 B
Ruby
Raw Normal View History

2019-11-07 21:27:37 +00:00
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