Class: CrudComponents::Admin::ApplicationController

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

Overview

Base for the engine's controllers. Inherits from the host's controller (see config.parent_controller), so current_user, the session and any rescue_from are the app's own.

Direct Known Subclasses

DashboardController, ResourcesController

Constant Summary collapse

ACTIVE_STORAGE_HELPERS =

Active Storage's route helpers live in the application's route set, not in an isolated engine's — attachment cells call them by bare name.

%i[
  rails_blob_path rails_blob_url rails_representation_path rails_representation_url
  rails_storage_proxy_path rails_storage_proxy_url
  rails_storage_redirect_path rails_storage_redirect_url
].freeze