Commit 48ffec9e authored by James Lopez's avatar James Lopez

Update rename_base.rb

parent 3760a7c2
...@@ -15,7 +15,7 @@ module Gitlab ...@@ -15,7 +15,7 @@ module Gitlab
end end
def path_patterns def path_patterns
@path_patterns ||= paths.map { |path| ["%/#{path}", "#{path}"] }.flatten @path_patterns ||= paths.flat_map { |path| ["%/#{path}", path] }
end end
def rename_path_for_routable(routable) def rename_path_for_routable(routable)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment