Exception: ActiveAdmin::Oidc::InactiveError
- Inherits:
-
ProvisioningError
- Object
- StandardError
- Error
- ProvisioningError
- ActiveAdmin::Oidc::InactiveError
- Defined in:
- lib/activeadmin-oidc.rb
Overview
Raised when active_for_authentication? rejects the user. Carries the model’s inactive_message symbol so the controller can translate it via I18n (devise.failure.<symbol>) instead of falling back to the generic denial flash.
Instance Attribute Summary collapse
-
#inactive_message_key ⇒ Object
readonly
Returns the value of attribute inactive_message_key.
Instance Method Summary collapse
-
#initialize(inactive_message_key) ⇒ InactiveError
constructor
Devise’s default inactive_message is :inactive.
Constructor Details
#initialize(inactive_message_key) ⇒ InactiveError
Devise’s default inactive_message is :inactive. Hosts can override the method and legitimately return nil on some branches; fall back to :inactive so the controller never ends up with an empty flash.
42 43 44 45 |
# File 'lib/activeadmin-oidc.rb', line 42 def initialize() @inactive_message_key = .presence || :inactive super(@inactive_message_key.to_s) end |
Instance Attribute Details
#inactive_message_key ⇒ Object (readonly)
Returns the value of attribute inactive_message_key.
36 37 38 |
# File 'lib/activeadmin-oidc.rb', line 36 def @inactive_message_key end |