Class: Decidim::Initiatives::Admin::ApplicationController

Inherits:
Admin::ApplicationController
  • Object
show all
Defined in:
app/controllers/decidim/initiatives/admin/application_controller.rb

Overview

The main admin application controller for initiatives

Instance Method Summary collapse

Instance Method Details

#permission_class_chainObject



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

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

#permissions_contextObject



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

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