Module: Decidim::FeaturePathHelper
- Defined in:
- app/helpers/decidim/feature_path_helper.rb
Overview
A helper to get the root path for a feature.
Instance Method Summary collapse
-
#main_feature_path(feature) ⇒ Object
Returns the defined root path for a given feature.
-
#manage_feature_path(feature) ⇒ Object
Returns the defined admin root path for a given feature.
Instance Method Details
#main_feature_path(feature) ⇒ Object
Returns the defined root path for a given feature.
feature - the Feature we want to find the root path for.
Returns a url.
11 12 13 |
# File 'app/helpers/decidim/feature_path_helper.rb', line 11 def main_feature_path(feature) EngineRouter.main_proxy(feature).root_path end |
#manage_feature_path(feature) ⇒ Object
Returns the defined admin root path for a given feature.
feature - the Feature we want to find the root path for.
Returns a url.
20 21 22 |
# File 'app/helpers/decidim/feature_path_helper.rb', line 20 def manage_feature_path(feature) EngineRouter.admin_proxy(feature).root_path end |