Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-09-29 16:37:50 +0300
committerValery Sizov <vsv2711@gmail.com>2015-10-01 09:54:56 +0300
commit5b573130515913dd29216c642334200b1b973245 (patch)
treeecb0531ba596e0d28f1eb5f099073f45e6dd33ee /app/models/namespace.rb
parent2714d5b8147cef39343a1c35ba099ebe6445f5e4 (diff)
Note the original location of a moved project when notifying users of the move
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index 161a16ca61c..bc8525df5a5 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -137,7 +137,9 @@ class Namespace < ActiveRecord::Base
end
def send_update_instructions
- projects.each(&:send_move_instructions)
+ projects.each do |project|
+ project.send_move_instructions("#{path_was}/#{project.path}")
+ end
end
def kind