Exception: Kadmin::Auth::UnauthorizedError

Inherits:
Error
  • Object
show all
Defined in:
lib/kadmin/auth/unauthorized_error.rb

Instance Method Summary collapse

Instance Method Details

#messageObject

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 message
  I18n.t(@message, default: @message)
end

#titleObject



9
10
11
# File 'lib/kadmin/auth/unauthorized_error.rb', line 9

def title
  I18n.t('kadmin.auth.unauthorized')
end