Class: Decidim::Pages::ApplicationController

Inherits:
Features::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::Features::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(feature: current_feature)
end