Class: Admin::BaseController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Admin::BaseController
- Includes:
- Pagination
- Defined in:
- lib/generators/open_loam/install/templates/admin/base_controller.rb
Direct Known Subclasses
ApiDocsController, ApiTokensController, BusinessRulesController, CommentsController, ConfigsController, DashboardController, DashboardWidgetsController, DictionariesController, DictionaryEntriesController, EventDeliveriesController, EventsController, FeaturesController, FieldDefinitionsController, HistoryController, ImportsController, InboundWebhookSourcesController, MfaController, NotificationsController, OverridesController, PendingActionsController, PerspectivesController, ProgressJobsController, RecordLocksController, ScheduledJobsController, SearchController, SsoProvidersController, SudoController, TranslationsController, WebhookEndpointsController
Constant Summary
Constants included from Pagination
Class Method Summary collapse
-
.skip_authorization!(reason, **options) ⇒ Object
For screens that are authorized STRUCTURALLY rather than by a policy call — a list scoped to current_actor, a pre-auth screen.
Methods included from Pagination
Class Method Details
.skip_authorization!(reason, **options) ⇒ Object
For screens that are authorized STRUCTURALLY rather than by a policy call — a list scoped to current_actor, a pre-auth screen. The reason is required and shows up in the source, so every exemption is a documented claim rather than a silent opt-out.
24 25 26 27 28 |
# File 'lib/generators/open_loam/install/templates/admin/base_controller.rb', line 24 def self.(reason, **) raise ArgumentError, "skip_authorization! needs a reason" if reason.to_s.strip.empty? skip_after_action :verify_authorized!, ** end |