Sha256: 94f85019ade9eae44359ce7950dbb9d547b7cfe1c70a6c8f6931ad6192da1b55

Contents?: true

Size: 656 Bytes

Versions: 19

Compression:

Stored size: 656 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

19 entries across 19 versions & 1 rubygems

Version Path
disco_app-0.6.0 app/controllers/disco_app/install_controller.rb
disco_app-0.6.1 app/controllers/disco_app/install_controller.rb
disco_app-0.6.2 app/controllers/disco_app/install_controller.rb
disco_app-0.6.3 app/controllers/disco_app/install_controller.rb
disco_app-0.6.4 app/controllers/disco_app/install_controller.rb
disco_app-0.6.5 app/controllers/disco_app/install_controller.rb
disco_app-0.6.6 app/controllers/disco_app/install_controller.rb
disco_app-0.6.7 app/controllers/disco_app/install_controller.rb
disco_app-0.6.8 app/controllers/disco_app/install_controller.rb
disco_app-0.6.9 app/controllers/disco_app/install_controller.rb
disco_app-0.7.0 app/controllers/disco_app/install_controller.rb
disco_app-0.7.1 app/controllers/disco_app/install_controller.rb
disco_app-0.7.2 app/controllers/disco_app/install_controller.rb
disco_app-0.8.0 app/controllers/disco_app/install_controller.rb
disco_app-0.8.1 app/controllers/disco_app/install_controller.rb
disco_app-0.8.2 app/controllers/disco_app/install_controller.rb
disco_app-0.8.3 app/controllers/disco_app/install_controller.rb
disco_app-0.8.4 app/controllers/disco_app/install_controller.rb
disco_app-0.8.5 app/controllers/disco_app/install_controller.rb