class Avo::App
def init(request:, context:, current_user:, root_path:)
def init(request:, context:, current_user:, root_path:) self.request = request self.context = context self.current_user = current_user self.root_path = root_path self.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license # Set the current host for ActiveStorage begin ActiveStorage::Current.host = request.base_url rescue => exception Rails.logger.debug "[Avo] Failed to set ActiveStorage::Current.host, #{exception.inspect}" end init_resources end