Class: MaquinaNewsletters::ApplicationController

Inherits:
Object
  • Object
show all
Includes:
BasicAuthentication
Defined in:
app/controllers/maquina_newsletters/application_controller.rb

Overview

The engine’s base controller inherits from a HOST-configurable controller (mirrors rails/mission_control-jobs). Defaults to ActionController::Base so the engine runs standalone; a host points MaquinaNewsletters.base_controller_class at its own authenticated base controller (e.g. “BackstageController”). Authentication is therefore the host base controller’s responsibility — the engine does not hardcode it.

BasicAuthentication is an OPTIONAL fallback (off unless configured) for hosts whose base controller does not already authenticate.