Merge pull request #1096 from moregeek/show-flash-note-when-destroying-a-project

show flash notice after deletion of a project
This commit is contained in:
Valeriy Sizov 2012-07-18 05:35:42 -07:00
commit 72a571724d

View file

@ -72,6 +72,6 @@ class Admin::ProjectsController < ApplicationController
@admin_project = Project.find_by_code(params[:id])
@admin_project.destroy
redirect_to admin_projects_url
redirect_to admin_projects_url, notice: 'Project was successfully deleted.'
end
end