diff options
author | James Lopez <james@gitlab.com> | 2017-05-12 16:00:18 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2017-05-12 16:00:18 +0000 |
commit | 48ffec9e74ad7ac381936d61f73cef86d9919513 (patch) | |
tree | e67451d1b34d7ab1b025966135a89dafd08ea7e0 /lib | |
parent | 3760a7c230512fef8643bbd078e59ad20787d591 (diff) | |
download | gitlab-ce-48ffec9e74ad7ac381936d61f73cef86d9919513.tar.gz |
Update rename_base.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb index 95606290486..5397877b5d5 100644 --- a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb +++ b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb @@ -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) |