summaryrefslogtreecommitdiffstats
path: root/app/helpers/routes_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-23 15:55:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-23 15:55:57 +0000
commit4ac43ab876319acb828aedc1c7cc0210f4cb0d9e (patch)
treedf6f5c6a854d00911a4648b95f6842f5af4e9eec /app/helpers/routes_helper.rb
parent3ef7f5855edc1193755097a4ef981ff67ea4ae56 (diff)
downloadredmine-4ac43ab876319acb828aedc1c7cc0210f4cb0d9e.tar.gz
redmine-4ac43ab876319acb828aedc1c7cc0210f4cb0d9e.zip
Code cleanup, use named routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11077 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/routes_helper.rb')
-rw-r--r--app/helpers/routes_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb
index f52dc6df0..afb77aa8b 100644
--- a/app/helpers/routes_helper.rb
+++ b/app/helpers/routes_helper.rb
@@ -28,4 +28,12 @@ module RoutesHelper
issues_path(*args)
end
end
+
+ def _project_calendar_path(project, *args)
+ project ? project_calendar_path(project, *args) : issues_calendar_path(*args)
+ end
+
+ def _project_gantt_path(project, *args)
+ project ? project_gantt_path(project, *args) : issues_gantt_path(*args)
+ end
end