Class: StimulusGridRails::BaseController
- Inherits:
-
Object
- Object
- StimulusGridRails::BaseController
- Defined in:
- app/controllers/stimulus_grid_rails/base_controller.rb
Overview
Base for all gem controllers. Inherits the host’s configured controller (default ApplicationController) so Devise’s authenticate_user! and ActsAsTenant’s set_current_tenant_through_filter run for grid endpoints too — without that, these actions would execute unauthenticated and outside any tenant scope, leaking rows across tenants.
Configure with ‘StimulusGridRails.parent_controller = “ApplicationController”`.