Defect #16795 ยป fixed member deletion to avoid dublicate after_destroy callbacks.diff
app/controllers/members_controller.rb (working copy) | ||
---|---|---|
95 | 95 | |
96 | 96 |
def destroy |
97 | 97 |
if request.delete? && @member.deletable? |
98 |
@member.destroy
|
|
98 |
@member.roles.destroy_all
|
|
99 | 99 |
end |
100 | 100 |
respond_to do |format| |
101 | 101 |
format.html { redirect_to_settings_in_projects } |