Make CanCan Default Message a translatable text. Default to the one you had.
This commit is contained in:
parent
613ab1c1ab
commit
596ad235a9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user