Class: Decidim::Initiatives::ApplicationController

Inherits:
ApplicationController show all
Includes:
NeedsPermission
Defined in:
decidim-initiatives/app/controllers/decidim/initiatives/application_controller.rb

Overview

The main admin application controller for initiatives

Instance Method Summary collapse

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

#permission_class_chainObject


20
21
22
# File 'decidim-initiatives/app/controllers/decidim/initiatives/application_controller.rb', line 20

def permission_class_chain
  ::Decidim.permissions_registry.chain_for(::Decidim::Initiatives::ApplicationController)
end

#permission_scopeObject


24
25
26
# File 'decidim-initiatives/app/controllers/decidim/initiatives/application_controller.rb', line 24

def permission_scope
  :public
end

#permissions_contextObject


14
15
16
17
18
# File 'decidim-initiatives/app/controllers/decidim/initiatives/application_controller.rb', line 14

def permissions_context
  super.merge(
    current_participatory_space: try(:current_participatory_space)
  )
end