git-svn-id: http://svn.redmine.org/redmine/trunk@19961 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.2.0
@@ -158,12 +158,12 @@ module Redmine | |||
def with_leading_slash(path) | |||
path ||= '' | |||
(path[0,1]!="/") ? "/#{path}" : path | |||
(path[0, 1]!="/") ? "/#{path}" : path | |||
end | |||
def with_trailling_slash(path) | |||
path ||= '' | |||
(path[-1,1] == "/") ? path : "#{path}/" | |||
(path[-1, 1] == "/") ? path : "#{path}/" | |||
end | |||
def without_leading_slash(path) | |||
@@ -173,7 +173,7 @@ module Redmine | |||
def without_trailling_slash(path) | |||
path ||= '' | |||
(path[-1,1] == "/") ? path[0..-2] : path | |||
(path[-1, 1] == "/") ? path[0..-2] : path | |||
end | |||
private |