diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-28 19:22:45 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-28 19:22:45 +0400 |
commit | 1c5876eb7b2deb069d919bd19b51c9f6218e0f41 (patch) | |
tree | 0d93953103153bcadc96ee9688a1cca43a9711a0 /app/observers/project_observer.rb | |
parent | b4f16faafd5bff1683996152b49342743a0f1a8b (diff) |
Do gitolite calls async. Remove satellite with project remove
Diffstat (limited to 'app/observers/project_observer.rb')
-rw-r--r-- | app/observers/project_observer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/observers/project_observer.rb b/app/observers/project_observer.rb index b1c694569d7..cc454ae3e35 100644 --- a/app/observers/project_observer.rb +++ b/app/observers/project_observer.rb @@ -10,6 +10,7 @@ class ProjectObserver < ActiveRecord::Observer def after_destroy(project) log_info("Project \"#{project.name}\" was removed") + project.satellite.destroy project.destroy_repository end |