From 596ad235a9843c8f5d6d086a7d2971074a22c2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hock=20Isaza?= Date: Thu, 30 Jun 2011 13:22:49 -0700 Subject: [PATCH] Make CanCan Default Message a translatable text. Default to the one you had. --- lib/cancan/exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cancan/exceptions.rb b/lib/cancan/exceptions.rb index fa676fc..ab44f94 100644 --- a/lib/cancan/exceptions.rb +++ b/lib/cancan/exceptions.rb @@ -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