13 lines
264 B
Ruby
13 lines
264 B
Ruby
|
module Redmine #:nodoc:
|
||
|
module CoreExtensions #:nodoc:
|
||
|
module String #:nodoc:
|
||
|
# Custom string inflections
|
||
|
module Inflections
|
||
|
def with_leading_slash
|
||
|
starts_with?('/') ? self : "/#{ self }"
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|