diff --git a/lib/cancan/exceptions.rb b/lib/cancan/exceptions.rb index fa676fcf..ab44f94a 100644 --- a/lib/cancan/exceptions.rb +++ b/lib/cancan/exceptions.rb @@ -40,7 +40,7 @@ def initialize(message = nil, action = nil, subject = nil) @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