Update rename_base.rb

This commit is contained in:
James Lopez 2017-05-12 16:00:18 +00:00
parent 3760a7c230
commit 48ffec9e74
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ module Gitlab
end
def path_patterns
@path_patterns ||= paths.map { |path| ["%/#{path}", "#{path}"] }.flatten
@path_patterns ||= paths.flat_map { |path| ["%/#{path}", path] }
end
def rename_path_for_routable(routable)