Class: Decidim::Pages::ApplicationController

Inherits:
Features::BaseController show all
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::Features::Basecontroller`, which override its layout and provide all kinds of useful methods.

Instance Method Summary collapse

Methods inherited from Features::BaseController

#ability_context, #current_feature, #current_manifest, #current_participatory_space

Methods included from ActionAuthorization

#_action_authorizer, #action_authorization, #authorize_action!, #authorize_action_path, #authorize_action_path_from_status

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#showObject



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

def show
  @page = Page.find_by(feature: current_feature)
end