Class: Decidim::Admin::Features::BaseController

Inherits:
ApplicationController show all
Includes:
Concerns::ParticipatoryProcessAdmin, FeatureSettings, NeedsParticipatoryProcess
Defined in:
app/controllers/decidim/admin/features/base_controller.rb

Overview

This controller is the abstract class from which all feature controllers in their admin engines should inherit from.

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_ability_klass, #user_not_authorized_path

Instance Method Details

#current_featureObject



27
28
29
# File 'app/controllers/decidim/admin/features/base_controller.rb', line 27

def current_feature
  request.env["decidim.current_feature"]
end

#current_participatory_processObject



31
32
33
# File 'app/controllers/decidim/admin/features/base_controller.rb', line 31

def current_participatory_process
  request.env["decidim.current_participatory_process"]
end

#parent_pathObject



35
36
37
# File 'app/controllers/decidim/admin/features/base_controller.rb', line 35

def parent_path
  decidim_admin.participatory_process_features_path(current_participatory_process)
end