diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-02 17:42:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-02 17:42:20 +0000 |
commit | 2d5ac54d2eb9f49b8a2f65b4469aa6d95a1e85d6 (patch) | |
tree | efc30fe2b599ba2cce8f368460b76c32fb197413 /app/controllers/roles_controller.rb | |
parent | 7701de9ae4fd85ef7ddc0e3a26e2234793d7e902 (diff) | |
download | redmine-2d5ac54d2eb9f49b8a2f65b4469aa6d95a1e85d6.tar.gz redmine-2d5ac54d2eb9f49b8a2f65b4469aa6d95a1e85d6.zip |
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
Diffstat (limited to 'app/controllers/roles_controller.rb')
-rw-r--r-- | app/controllers/roles_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 57398f323..6f1657675 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -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 |