Class: Decidim::Pages::ApplicationController

Inherits:
Components::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::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, #share_token

Methods included from RegistersPermissions

register_permissions

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

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(component: current_component)
end