Fix project destroy timeout from admin area. Added 30 ssh keys to dev seeds
This commit is contained in:
parent
a16533a04a
commit
f45345edb3
2 changed files with 17 additions and 8 deletions
|
@ -35,6 +35,9 @@ class Admin::ProjectsController < AdminController
|
|||
end
|
||||
|
||||
def destroy
|
||||
# Delete team first in order to prevent multiple gitolite calls
|
||||
@project.truncate_team
|
||||
|
||||
@project.destroy
|
||||
|
||||
redirect_to admin_projects_path, notice: 'Project was successfully deleted.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue