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