summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2011-12-14 18:07:27 +0000
committerEtienne Massip <etienne.massip@gmail.com>2011-12-14 18:07:27 +0000
commit90010d1f3bd34d4aeaa94f90d63dcf1467210ccb (patch)
treeab79fb7dcb475ca6c8d0403873b648e8ad3f6240 /app/controllers
parent08e8567e930b5befaa6947c1356550f1a9ba294f (diff)
downloadredmine-90010d1f3bd34d4aeaa94f90d63dcf1467210ccb.tar.gz
redmine-90010d1f3bd34d4aeaa94f90d63dcf1467210ccb.zip
Removed code duplicated in lib.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8206 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/repositories_controller.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 7f346bfd6..98739a60c 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -375,9 +375,3 @@ class Date
(date.year - self.year)*52 + (date.cweek - self.cweek)
end
end
-
-class String
- def with_leading_slash
- starts_with?('/') ? self : "/#{self}"
- end
-end