diff options
author | Johan Sørensen <johan@johansorensen.com> | 2007-11-22 23:28:07 +0100 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2007-11-22 23:28:07 +0100 |
commit | b0a5dae97979b9497ac09be7e2bbb10e6cb48268 (patch) | |
tree | 6813243affd7bcff6813e327208c98847e96bed5 /app/controllers/projects_controller.rb | |
parent | 4f69f83fb654b898686fc03c403321097b3f29e7 (diff) | |
download | gitorious-mainline-outdated-b0a5dae97979b9497ac09be7e2bbb10e6cb48268.zip gitorious-mainline-outdated-b0a5dae97979b9497ac09be7e2bbb10e6cb48268.tar.gz gitorious-mainline-outdated-b0a5dae97979b9497ac09be7e2bbb10e6cb48268.tar.bz2 |
test coverage
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 26bd398..310a160 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -39,10 +39,7 @@ class ProjectsController < ApplicationController def destroy @project = Project.find(params[:id]) - if @project.destroy - redirect_to projects_path - else - flash[:error] - end + @project.destroy + redirect_to projects_path end end
\ No newline at end of file |