Class: Decidim::Admin::ApplicationController
- Inherits:
-
DecidimController
- Object
- DecidimController
- Decidim::Admin::ApplicationController
- Includes:
- FormFactory, LocaleSwitcher, NeedsAuthorization, NeedsOrganization, PayloadInfo
- Defined in:
- decidim-admin/app/controllers/decidim/admin/application_controller.rb
Overview
The main application controller that inherits from Rails.
Direct Known Subclasses
CategoriesController, DashboardController, ExportsController, FeaturePermissionsController, Features::BaseController, FeaturesController, ManagedUsers::ImpersonationsController, ManagedUsers::PromotionsController, ManagedUsersController, ModerationsController, NewslettersController, OrganizationController, ParticipatoryProcessAttachmentsController, ParticipatoryProcessCopiesController, ParticipatoryProcessGroupsController, ParticipatoryProcessPublicationsController, ParticipatoryProcessStepActivationsController, ParticipatoryProcessStepOrderingController, ParticipatoryProcessStepsController, ParticipatoryProcessUserRolesController, ParticipatoryProcessesController, ScopeTypesController, ScopesController, StaticPagesController, UserGroupsController, UsersController
Instance Method Summary collapse
-
#current_ability_klass ⇒ Object
Overwrites ‘cancancan`’s method to point to the correct ability class, since the gem expects the ability class to be in the root namespace.
- #user_not_authorized_path ⇒ Object
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#current_ability_klass ⇒ Object
Overwrites ‘cancancan`’s method to point to the correct ability class, since the gem expects the ability class to be in the root namespace.
36 37 38 |
# File 'decidim-admin/app/controllers/decidim/admin/application_controller.rb', line 36 def current_ability_klass Decidim::Admin::Abilities::BaseAbility end |
#user_not_authorized_path ⇒ Object
30 31 32 |
# File 'decidim-admin/app/controllers/decidim/admin/application_controller.rb', line 30 def decidim_admin.root_path end |