Class: Decidim::Pages::ApplicationController
- Inherits:
-
Components::BaseController
- Object
- 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
Instance Method Details
#show ⇒ Object
13 14 15 |
# File 'decidim-pages/app/controllers/decidim/pages/application_controller.rb', line 13 def show @page = Page.find_by(component: current_component) end |