Sha256: 46477a31c0ad0916e4d14d952fdf7ef6246bf9ecf115b7a6722bc5035aec573e

Contents?: true

Size: 288 Bytes

Versions: 62

Compression:

Stored size: 288 Bytes

Contents

module Workarea
  class GeneratePromoCodes
    include Sidekiq::Worker
    include Sidekiq::CallbacksWorker

    sidekiq_options enqueue_on: { Pricing::Discount::CodeList => :create }

    def perform(id)
      Pricing::Discount::CodeList.find(id).generate_promo_codes!
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.15 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.36 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.14 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.35 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.13 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.34 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.12 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.33 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.11 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.10 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.32 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.9 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.31 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.8 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.30 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.7 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.29 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.6 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.4.28 app/workers/workarea/generate_promo_codes.rb
workarea-core-3.5.5 app/workers/workarea/generate_promo_codes.rb