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
|
@message = message
|
||||||
@action = action
|
@action = action
|
||||||
@subject = subject
|
@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
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
|
|
Loading…
Reference in New Issue
Block a user