Module: ActionAgent::Compatibility

Defined in:
lib/action_agent/compatibility.rb

Defined Under Namespace

Modules: ConstMissing

Constant Summary collapse

RENAMED =
{
  "Dashboard" => "ActionAgent",
  "TelemetryTrace" => "ActionAgent::TelemetryTrace",
  "ProcessTelemetryTracesJob" => "ActionAgent::ProcessTelemetryTracesJob"
}.freeze

Class Method Summary collapse

Class Method Details

.install!Object

Installs const_missing on ActiveAgent so the old names keep resolving without eagerly loading the engine's models (which would drag Active Record in at boot, the very thing the gem split fixed).



29
30
31
32
33
34
# File 'lib/action_agent/compatibility.rb', line 29

def self.install!
  return if @installed

  ActiveAgent.singleton_class.prepend(ConstMissing)
  @installed = true
end