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

Version Path
disco_app-0.3.0 app/controllers/disco_app/install_controller.rb
disco_app-0.4.0 app/controllers/disco_app/install_controller.rb
disco_app-0.4.1 app/controllers/disco_app/install_controller.rb
disco_app-0.4.2 app/controllers/disco_app/install_controller.rb
disco_app-0.4.3 app/controllers/disco_app/install_controller.rb
disco_app-0.4.4 app/controllers/disco_app/install_controller.rb
disco_app-0.5.0 app/controllers/disco_app/install_controller.rb
disco_app-0.5.1 app/controllers/disco_app/install_controller.rb
disco_app-0.5.2 app/controllers/disco_app/install_controller.rb
disco_app-0.5.3 app/controllers/disco_app/install_controller.rb
disco_app-0.5.4 app/controllers/disco_app/install_controller.rb
disco_app-0.5.5 app/controllers/disco_app/install_controller.rb
disco_app-0.5.6 app/controllers/disco_app/install_controller.rb