Module: Decidim::FeaturePathHelper

Included in:
Admin::ExportsController
Defined in:
decidim-core/app/helpers/decidim/feature_path_helper.rb

Overview

A helper to get the root path for a feature.

Instance Method Summary collapse

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 'decidim-core/app/helpers/decidim/feature_path_helper.rb', line 11

def main_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 'decidim-core/app/helpers/decidim/feature_path_helper.rb', line 20

def manage_feature_path(feature)
  feature_root_path_for(feature.manifest.admin_engine, feature)
end