diff options
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r-- | app/helpers/dashboard_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb new file mode 100644 index 00000000000..b73c1c1e1c2 --- /dev/null +++ b/app/helpers/dashboard_helper.rb @@ -0,0 +1,10 @@ +module DashboardHelper + def dashboard_filter_path(entity, options={}) + case entity + when 'issue' then + dashboard_issues_path(options) + when 'merge_request' + dashboard_merge_requests_path(options) + end + end +end |