Class: Decidim::Admin::ApplicationController
- Inherits:
-
DecidimController
- Object
- DecidimController
- Decidim::Admin::ApplicationController
- Includes:
- FormFactory, LocaleSwitcher, NeedsAuthorization, NeedsOrganization, PayloadInfo
- Defined in:
- app/controllers/decidim/admin/application_controller.rb
Overview
The main application controller that inherits from Rails.
Direct Known Subclasses
AreaTypesController, AreasController, AuthorizationWorkflowsController, CategoriesController, DashboardController, ExportsController, FeaturePermissionsController, Features::BaseController, FeaturesController, LogsController, ManagedUsers::ImpersonationsController, ManagedUsers::PromotionsController, ManagedUsersController, ModerationsController, NewslettersController, OfficializationsController, OrganizationAppearanceController, OrganizationController, 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
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.
34 35 36 |
# File 'app/controllers/decidim/admin/application_controller.rb', line 34 def current_ability_klass Decidim::Admin::Abilities::BaseAbility end |
#user_not_authorized_path ⇒ Object
28 29 30 |
# File 'app/controllers/decidim/admin/application_controller.rb', line 28 def decidim_admin.root_path end |