Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
gitlab
Commits
72a57172
Commit
72a57172
authored
Jul 18, 2012
by
Valeriy Sizov
Browse files
Merge pull request #1096 from moregeek/show-flash-note-when-destroying-a-project
show flash notice after deletion of a project
parents
3ac840ff
990b9217
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/admin/projects_controller.rb
View file @
72a57172
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment