Class: Decidim::Pages::ApplicationController

Inherits:
Components::BaseController
  • Object
show all
Defined in:
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

#showObject



11
12
13
# File 'app/controllers/decidim/pages/application_controller.rb', line 11

def show
  @page = Page.find_by(component: current_component)
end