Sha256: f7a358f4838737764e1dbd053d6622cbdd676234ba3f8a99f029c87a60cbd6d5

Contents?: true

Size: 777 Bytes

Versions: 42

Compression:

Stored size: 777 Bytes

Contents

class DiscoApp::InstallController < ApplicationController
  include DiscoApp::Concerns::AuthenticatedController

  skip_before_action :check_current_subscription
  skip_before_action :check_active_charge

  # Start the installation process for the current shop, then redirect to the installing screen.
  def install
    DiscoApp::AppInstalledJob.perform_later(@shop, cookies[DiscoApp::CODE_COOKIE_KEY], cookies[DiscoApp::SOURCE_COOKIE_KEY])
    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

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/controllers/disco_app/install_controller.rb
disco_app-0.9.4 app/controllers/disco_app/install_controller.rb
disco_app-0.9.5 app/controllers/disco_app/install_controller.rb
disco_app-0.9.6 app/controllers/disco_app/install_controller.rb
disco_app-0.9.7 app/controllers/disco_app/install_controller.rb
disco_app-0.9.8 app/controllers/disco_app/install_controller.rb
disco_app-0.9.9 app/controllers/disco_app/install_controller.rb
disco_app-0.9.10 app/controllers/disco_app/install_controller.rb
disco_app-0.9.11 app/controllers/disco_app/install_controller.rb
disco_app-0.10.0 app/controllers/disco_app/install_controller.rb
disco_app-0.10.1 app/controllers/disco_app/install_controller.rb
disco_app-0.10.2 app/controllers/disco_app/install_controller.rb
disco_app-0.10.3 app/controllers/disco_app/install_controller.rb
disco_app-0.10.4 app/controllers/disco_app/install_controller.rb
disco_app-0.10.5 app/controllers/disco_app/install_controller.rb
disco_app-0.11.0 app/controllers/disco_app/install_controller.rb
disco_app-0.11.1 app/controllers/disco_app/install_controller.rb
disco_app-0.12.0 app/controllers/disco_app/install_controller.rb
disco_app-0.12.1 app/controllers/disco_app/install_controller.rb
disco_app-0.12.5 app/controllers/disco_app/install_controller.rb