lib/contrast/components/app_context.rb in contrast-agent-4.14.1 vs lib/contrast/components/app_context.rb in contrast-agent-5.0.0

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. +# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'rubygems/version' require 'contrast/api/decorators/agent_startup' require 'contrast/api/decorators/application_startup' @@ -57,9 +57,10 @@ end def path @_path ||= begin tmp = ::Contrast::CONFIG.root.application.path + tmp = Contrast::Agent.framework_manager.application_root unless Contrast::Utils::StringUtils.present?(tmp) Contrast::Utils::StringUtils.truncate(tmp, DEFAULT_APP_PATH) rescue StandardError DEFAULT_APP_PATH end end