Sha256: f1dd9ed6780ddd4252897fafca75337fa7d3a8fd726618ce431bb39420343b2c

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

module DiscoApp::Concerns::AppUninstalledJob
  extend ActiveSupport::Concern

  included do

    before_enqueue { @shop.awaiting_uninstall! }
    before_perform { @shop.uninstalling! }
    after_perform { @shop.uninstalled! }

  end

  def perform(domain, shop_data)
    # Mark the shop's charge status as "cancelled" unless charges have been waived.
    unless @shop.charge_waived?
      @shop.charge_cancelled!
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
disco_app-0.6.0 app/jobs/disco_app/concerns/app_uninstalled_job.rb