Make CanCan Default Message a translatable text. Default to the one you had.

This commit is contained in:
Nicolás Hock Isaza 2011-06-30 13:22:49 -07:00
parent 613ab1c1ab
commit 596ad235a9

View File

@ -40,7 +40,7 @@ module CanCan
@message = message
@action = action
@subject = subject
@default_message = "You are not authorized to access this page."
@default_message = I18n.t(:"cancan.default_message", :default => "You are not authorized to access this page.")
end
def to_s