Class: Decidim::Admin::Features::BaseController
Overview
This controller is the abstract class from which all feature controllers in their admin engines should inherit from.
Instance Method Summary
collapse
#current_ability_klass, #user_not_authorized_path
Instance Method Details
#current_feature ⇒ Object
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_process ⇒ Object
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_path ⇒ Object
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
|