Class: ActionAgent::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/action_agent/application_controller.rb

Overview

Base controller for the ActiveAgent Dashboard.

Handles authentication and provides helper methods for multi-tenant mode.

Class Method Summary collapse

Class Method Details

.allow_unauthenticated_access(**options) ⇒ Object

Opts an action out of the host app's authentication — for the handful of endpoints that are deliberately public (the template gallery, the demo sandbox). Mirrors the Rails 8 authentication generator's helper so controllers read the same either side of the extraction.



21
22
23
# File 'app/controllers/action_agent/application_controller.rb', line 21

def self.allow_unauthenticated_access(**options)
  skip_before_action :authenticate_dashboard!, **options
end