summaryrefslogtreecommitdiff
path: root/app/models/namespace.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-12-21 15:32:08 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-01-03 16:13:32 -0200
commitfcb967ac672e224737f6e170693e45331eb4d636 (patch)
treeb0af32c29252d71858ea622839cf4a409a988f9e /app/models/namespace.rb
parent93eba91df9af083ea80b3b8ab01986efdeec43a0 (diff)
downloadgitlab-ce-fcb967ac672e224737f6e170693e45331eb4d636.tar.gz
Write projects config to all projects inside namespace in batches
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index efbfc607040..bdcc9159d26 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -269,8 +269,8 @@ class Namespace < ActiveRecord::Base
RedirectRoute.permanent.exists?(path: path)
end
- def write_projects_full_path_config
- all_projects.each do |project|
+ def write_projects_repository_config
+ all_projects.find_each do |project|
project.expires_full_path_cache # we need to clear cache to validate renames correctly
project.write_repository_config
end