Applied the flash notices patch by Matt Jones (slightly edited).
flash[:notice] and flash[:error] are now used for notice/error messages. git-svn-id: http://redmine.rubyforge.org/svn/trunk@600 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -58,7 +58,7 @@ class RolesController < ApplicationController
|
||||
def destroy
|
||||
@role = Role.find(params[:id])
|
||||
unless @role.members.empty?
|
||||
flash[:notice] = 'Some members have this role. Can\'t delete it.'
|
||||
flash[:error] = 'Some members have this role. Can\'t delete it.'
|
||||
else
|
||||
@role.destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user