Class: Decidim::Features::BaseController
Overview
Controller from which all feature engines inherit from. It’s in charge of setting the appropiate layout, including necessary helpers, and overall fooling the engine into thinking it’s isolated.
Instance Method Summary
collapse
#user_not_authorized_path
Instance Method Details
#current_feature ⇒ Object
24
25
26
|
# File 'lib/decidim/features/base_controller.rb', line 24
def current_feature
request.env["decidim.current_feature"]
end
|
#current_manifest ⇒ Object
28
29
30
|
# File 'lib/decidim/features/base_controller.rb', line 28
def current_manifest
current_feature.manifest
end
|
#current_participatory_process ⇒ Object
32
33
34
|
# File 'lib/decidim/features/base_controller.rb', line 32
def current_participatory_process
request.env["decidim.current_participatory_process"]
end
|