Exception: Kadmin::Auth::UnauthorizedError
- Defined in:
- lib/kadmin/auth/unauthorized_error.rb
Instance Method Summary collapse
-
#message ⇒ Object
Attempts to translate message, if not found returns message as a string.
- #title ⇒ Object
Instance Method Details
#message ⇒ Object
Attempts to translate message, if not found returns message as a string
5 6 7 |
# File 'lib/kadmin/auth/unauthorized_error.rb', line 5 def I18n.t(@message, default: @message) end |
#title ⇒ Object
9 10 11 |
# File 'lib/kadmin/auth/unauthorized_error.rb', line 9 def title I18n.t('kadmin.auth.unauthorized') end |