Improve perfomance of removeing group
This commit is contained in:
parent
f45345edb3
commit
d075df56d3
4 changed files with 27 additions and 1 deletions
|
@ -73,6 +73,8 @@ class Admin::GroupsController < AdminController
|
|||
end
|
||||
|
||||
def destroy
|
||||
@group.truncate_teams
|
||||
|
||||
@group.destroy
|
||||
|
||||
redirect_to admin_groups_path, notice: 'Group was successfully deleted.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue