Sha256: 2a8e7f92c9821b3273845bc7ab0056e36a616de4968f2536478be382e14f922b

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

class DiscoApp::AppUninstalledJob < DiscoApp::ShopJob

  include DiscoApp::Concerns::AppUninstalledJob

  # Extend the perform method to change the country name of the shop to
  # 'Nowhere' on uninstallation.
  def perform(_shop, shop_data)
    super
    @shop.update(data: @shop.data.merge(country_name: 'Nowhere'))
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.18.0 test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.18.2 test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.18.3 test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.18.6 test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.18.4 test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
disco_app-0.18.1 test/dummy/app/jobs/disco_app/app_uninstalled_job.rb