Class: Decidim::Api::ApplicationController
- Inherits:
-
DecidimController
- Object
- DecidimController
- Decidim::Api::ApplicationController
- Includes:
- ImpersonateUsers, NeedsAuthorization, NeedsOrganization
- Defined in:
- app/controllers/decidim/api/application_controller.rb
Overview
Base controller for ‘decidim-api`. All other controllers inherit from this.
Direct Known Subclasses
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.
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.
14 15 16 |
# File 'app/controllers/decidim/api/application_controller.rb', line 14 def current_ability_klass Decidim::Abilities::BaseAbility end |