Send update instructions after project namespace id changed or namespace path changed
This commit is contained in:
parent
d188adfd97
commit
75dd704294
5 changed files with 47 additions and 2 deletions
|
@ -3,7 +3,8 @@ class ProjectObserver < ActiveRecord::Observer
|
|||
project.update_repository
|
||||
end
|
||||
|
||||
def after_save(project)
|
||||
def after_update(project)
|
||||
project.send_move_instructions if project.namespace_id_changed?
|
||||
end
|
||||
|
||||
def after_destroy(project)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue