lib/contrast/components/assess.rb in contrast-agent-5.3.0 vs lib/contrast/components/assess.rb in contrast-agent-6.0.0

- old
+ new

@@ -108,9 +108,23 @@ ::Contrast::CONFIG.root.assess&.rules&.disabled_rules || ::Contrast::SETTINGS.assess_state.disabled_assess_rules || [] end + def track_original_object? + if @_track_original_object.nil? + @_track_original_object = !false?(::Contrast::CONFIG.root.assess.enable_original_object) + end + + @_track_original_object + end + + # The id for this process, based on the session metadata or id provided by the user, as indicated in + # application startup. + def session_id + ::Contrast::SETTINGS.assess_state.session_id + end + private def forcibly_enabled? @_forcibly_enabled = true?(::Contrast::CONFIG.root.assess.enable) if @_forcibly_enabled.nil? @_forcibly_enabled