houdini/app/jobs/recurring_donation_change_amount_nonprofit_email_job.rb

7 lines
266 B
Ruby

class RecurringDonationChangeAmountNonprofitEmailJob < ApplicationJob
queue_as :default
def perform(recurring_donation, previous_amount)
DonationMailer.nonprofit_recurring_donation_change_amount(recurring_donation.id, previous_amount).deliver_now
end
end