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
-
#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
#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 feature_path(feature) feature_root_path_for(feature.manifest.engine, feature) 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) feature_root_path_for(feature.manifest.admin_engine, feature) end |