Permalink
Browse files

Make CanCan Default Message a translatable text. Default to the one y…

…ou had.
  • Loading branch information...
1 parent 613ab1c commit 596ad235a9843c8f5d6d086a7d2971074a22c2fe @nhocki nhocki committed Jun 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cancan/exceptions.rb
View
@@ -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

0 comments on commit 596ad23

Please sign in to comment.