Change the i18n default name to :"unauthorized.default"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user