Class: Chats::ApplicationController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/chats/application_controller.rb

Overview

Base controller for every engine screen. It inherits from the HOST’s controller (config.parent_controller, “::ApplicationController” by default) so the host’s layout, helpers, auth filters, locale switching and exception handling all apply to the chat screens for free — the same integration style as api_keys’ dashboard.

NOTE: the superclass is resolved when this class is autoloaded, which in a booted app happens AFTER initializers — so ‘config.parent_controller` set in config/initializers/chats.rb is honored. In development the class is reloaded on every change, picking up config changes too.