Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
Make CanCan Default Message a translatable text. Default to the one y…
Browse files Browse the repository at this point in the history
…ou had.
  • Loading branch information
nhocki committed Jun 30, 2011
1 parent 613ab1c commit 596ad23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cancan/exceptions.rb
Expand Up @@ -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
Expand Down

0 comments on commit 596ad23

Please sign in to comment.