Sha256: 554fded05297396c7396f3eb2c7e4d27e553c7c0380c17d76ac4ca7f36f9c1d5
Contents?: true
Size: 424 Bytes
Versions: 10
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # Custom ApplicationJob scoped to the admin panel. # class NewsletterDeliveryJob < ApplicationJob queue_as :newsletter def perform(user, newsletter) NewsletterMailer.newsletter(user, newsletter).deliver_now newsletter.with_lock do newsletter.increment!(:total_deliveries) end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems