Class: Decidim::Pages::ApplicationController
- Inherits:
-
Components::BaseController
- Object
- DecidimController
- ApplicationController
- Components::BaseController
- Decidim::Pages::ApplicationController
- Defined in:
- decidim-pages/app/controllers/decidim/pages/application_controller.rb
Overview
This controller is the abstract class from which all other controllers of this engine inherit.
Note that it inherits from ‘Decidim::Components::Basecontroller`, which override its layout and provide all kinds of useful methods.
Instance Method Summary collapse
Methods inherited from Components::BaseController
#current_component, #current_manifest, #current_participatory_space, #permission_class_chain, #permission_scope, #redirect_unless_feature_private, #set_component_breadcrumb_item
Methods included from RegistersPermissions
Methods inherited from ApplicationController
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from TranslatableAttributes
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#show ⇒ Object
11 12 13 |
# File 'decidim-pages/app/controllers/decidim/pages/application_controller.rb', line 11 def show @page = Page.find_by(component: current_component) end |