Sha256: 620d25483dddbf6f510a203568e0e1da45b9bd705a4bd378390b7069281e59de
Contents?: true
Size: 658 Bytes
Versions: 13
Compression:
Stored size: 658 Bytes
Contents
module DiscoApp class InstallController < ApplicationController include DiscoApp::AuthenticatedController # Start the installation process for the current shop, then redirect to the installing screen. def install ::AppInstalledJob.perform_later(@shop.shopify_domain) redirect_to action: :installing end # Display an "installing" page. def installing if @shop.installed? redirect_to main_app.root_path end end # Display an "uninstalling" page. Should be almost never used. def uninstalling if @shop.uninstalled? redirect_to main_app.root_path end end end end
Version data entries
13 entries across 13 versions & 1 rubygems