Sha256: f0acb5c81fae001baadb2fddd0ff9f54e6829589ebcbebf782798c107732fa83

Contents?: true

Size: 681 Bytes

Versions: 64

Compression:

Stored size: 681 Bytes

Contents

require_dependency "avo/application_controller"

module Avo
  class DebugController < ApplicationController
    def index
    end

    def report
    end

    def refresh_license
      license = Licensing::LicenseManager.refresh_license request

      if license.valid?
        flash[:notice] = "avohq.io responded: \"#{license.id.humanize} license is valid\"."
      else
        if license.response['reason'].present?
          flash[:error] = "avohq.io responded: \"#{license.response['reason']}\"."
        else
          flash[:error] = license.response['error']
        end
      end

      redirect_back fallback_location: avo.avo_private_debug_index_path
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
avo-2.14.3.pre.4.tosqlfix app/controllers/avo/debug_controller.rb
avo-2.14.3.pre.3.jsbundling app/controllers/avo/debug_controller.rb
avo-2.14.3.pre.2.tailwindcss app/controllers/avo/debug_controller.rb
avo-2.14.3.pre.1.branding app/controllers/avo/debug_controller.rb
avo-2.14.2 app/controllers/avo/debug_controller.rb
avo-2.14.2.pre.1 app/controllers/avo/debug_controller.rb
avo-2.14.1 app/controllers/avo/debug_controller.rb
avo-2.14.1.pre.1 app/controllers/avo/debug_controller.rb
avo-2.14.0 app/controllers/avo/debug_controller.rb
avo-2.13.6.pre.2 app/controllers/avo/debug_controller.rb
avo-2.13.6.pre.1 app/controllers/avo/debug_controller.rb
avo-2.13.5.pre.2 app/controllers/avo/debug_controller.rb
avo-2.13.5.pre.1 app/controllers/avo/debug_controller.rb
avo-2.13.4.pre.1 app/controllers/avo/debug_controller.rb
avo-2.13.3.pre.4 app/controllers/avo/debug_controller.rb
avo-2.13.3.pre.3 app/controllers/avo/debug_controller.rb
avo-2.13.3.pre.2 app/controllers/avo/debug_controller.rb
avo-2.13.3.pre.1 app/controllers/avo/debug_controller.rb
avo-2.13.2.pre.2 app/controllers/avo/debug_controller.rb
avo-2.13.2.pre.1 app/controllers/avo/debug_controller.rb