From 17c7886791a7dd33daaa8ed0e334f733afefc4a1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 13 Dec 2007 18:53:34 +0000 Subject: [PATCH] Removed unused UsersController#destroy. git-svn-id: http://redmine.rubyforge.org/svn/trunk@988 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/users_controller.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index cf0128d7..3f3adb57 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -109,12 +109,4 @@ class UsersController < ApplicationController end redirect_to :action => 'edit', :id => @user and return end - - def destroy - User.find(params[:id]).destroy - redirect_to :action => 'list' - rescue - flash[:error] = "Unable to delete user" - redirect_to :action => 'list' - end end