Sha256: e8009dbab14b25616270dd7375519e2ccf4a59111b4f01a5244636aff954a7a9
Contents?: true
Size: 521 Bytes
Versions: 13
Compression:
Stored size: 521 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 # Perform application uninstallation. # # - Mark any recurring application charges as cancelled. # - Remove any stored sessions for the shop. # def perform(domain, shop_data) DiscoApp::ChargesService.cancel_recurring_charges(@shop) @shop.sessions.delete_all end end
Version data entries
13 entries across 13 versions & 1 rubygems