Sha256: 2a1bc334d440052392f9cb085e05a6e2fef55de0145f3fe6f5a51b784f6d6bb1
Contents?: true
Size: 632 Bytes
Versions: 23
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true module Decidim # A helper to get the root path for a feature. module FeaturePathHelper # Returns the defined root path for a given feature. # # feature - the Feature we want to find the root path for. # # Returns a url. def main_feature_path(feature) EngineRouter.main_proxy(feature).root_path end # Returns the defined admin root path for a given feature. # # feature - the Feature we want to find the root path for. # # Returns a url. def manage_feature_path(feature) EngineRouter.admin_proxy(feature).root_path end end end
Version data entries
23 entries across 23 versions & 2 rubygems