Module: Trane::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/trane/controller.rb,
lib/trane/controller/renderer.rb,
lib/trane/controller/error_handler.rb
Overview
Convenience composer that includes both Trane::Controller::Renderer and Trane::Controller::ErrorHandler. Use this when you want both behaviors. For finer control (e.g., render override without the rescue_from), include the submodules directly.
WARNING: include this only in API-specific base controllers (e.g. Api::BaseController < ActionController::API). The ErrorHandler piece captures StandardError subclasses globally — including in ApplicationController of an app that mixes HTML/JSON would intercept exceptions Devise / Pundit / etc. expect to bubble up.
Defined Under Namespace
Modules: ErrorHandler, Renderer