Change the i18n default name to :"unauthorized.default"

This commit is contained in:
Nicolás Hock Isaza
2011-07-01 13:10:20 -05:00
parent 71f60bc4ac
commit 1c3e61725f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ module CanCan
@message = message
@action = action
@subject = subject
@default_message = I18n.t(:"cancan.default_message", :default => "You are not authorized to access this page.")
@default_message = I18n.t(:"unauthorized.default", :default => "You are not authorized to access this page.")
end
def to_s