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

Inherits:
ApplicationController show all
Includes:
Concerns::ParticipatoryProcessAdmin, FeatureSettings
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



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

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

#parent_pathObject



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

def parent_path
  decidim_admin.participatory_process_features_path(current_participatory_process)
end