Commit 72a571724d84d112f98a5543c971e9b3b9da1383
Exists in
master
and in
4 other branches
Merge pull request #1096 from moregeek/show-flash-note-when-destroying-a-project
show flash notice after deletion of a project
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/admin/projects_controller.rb
| ... | ... | @@ -72,6 +72,6 @@ class Admin::ProjectsController < ApplicationController |
| 72 | 72 | @admin_project = Project.find_by_code(params[:id]) |
| 73 | 73 | @admin_project.destroy |
| 74 | 74 | |
| 75 | - redirect_to admin_projects_url | |
| 75 | + redirect_to admin_projects_url, notice: 'Project was successfully deleted.' | |
| 76 | 76 | end |
| 77 | 77 | end | ... | ... |