Updated

app/controllers / application_controller.rb

A
24 lines of codes
2 methods
5.6 complexity/method
27 churn
11.22 complexity
0 duplications
class ApplicationController < ActionController::Base
  1. ApplicationController has no descriptive comment
include Localized include Pagy::Backend if ENV['HIGHLIGHT_PROJECT_ID'].present? require 'highlight' include Highlight::Integrations::Rails around_action :with_highlight_context end before_action :set_account before_action :setup_installation if Installation.installation_flow? private def setup_installation if Installation.installation_flow? && !request.path.include?('/installation') redirect_to installation_new_path and return end end def set_account @account = Current.account end end