Class: ActiveAgent::Dashboard::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/active_agent/dashboard/engine.rb

Overview

Rails Engine for the ActiveAgent Dashboard.

Provides a full-featured dashboard for managing agents, viewing telemetry, running sandboxes, and recording sessions.

Mount in your routes:

mount ActiveAgent::Dashboard::Engine => "/active_agent"

Class Method Summary collapse

Class Method Details

.dashboard_rootObject

Alias for consistency with existing code



26
27
28
# File 'lib/active_agent/dashboard/engine.rb', line 26

def self.dashboard_root
  root
end

.rootObject

Override engine root to point to the dashboard directory This must be set before paths are computed



21
22
23
# File 'lib/active_agent/dashboard/engine.rb', line 21

def self.root
  @root ||= Pathname.new(File.expand_path("..", __FILE__))
end