boards_controller_destroy.patch

Javier Menéndez Rizo, 2016-12-05 19:50

Download (543 Bytes)

View differences:

app/controllers/boards_controller.rb (revision )
103 103
  end
104 104

  
105 105
  def destroy
106
    @board.destroy
106
    if @board.destroy
107
      flash[:notice] = l(:notice_successful_delete)
108
    end
107 109
    redirect_to_settings_in_projects
108 110
  end
109 111