fixed member deletion to avoid dublicate after_destroy callbacks.diff

Islam Azab, 2014-05-03 01:48

Download (459 Bytes)

View differences:

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 }