changing flash[:error] to flash[:alert] in rdocs - closes #238
This commit is contained in:
parent
04522c9bc6
commit
52b33589dc
|
@ -294,7 +294,7 @@ module CanCan
|
||||||
#
|
#
|
||||||
# class ApplicationController < ActionController::Base
|
# class ApplicationController < ActionController::Base
|
||||||
# rescue_from CanCan::AccessDenied do |exception|
|
# rescue_from CanCan::AccessDenied do |exception|
|
||||||
# flash[:error] = exception.message
|
# flash[:alert] = exception.message
|
||||||
# redirect_to root_url
|
# redirect_to root_url
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user