Commit 75b332a0 authored by jplang's avatar jplang

Code cleanup.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7e0dd667
...@@ -92,10 +92,11 @@ class RolesController < ApplicationController ...@@ -92,10 +92,11 @@ class RolesController < ApplicationController
end end
def destroy def destroy
@role.destroy begin
redirect_to roles_path @role.destroy
rescue rescue
flash[:error] = l(:error_can_not_remove_role) flash[:error] = l(:error_can_not_remove_role)
redirect_to roles_path redirect_to roles_path
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment