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