Class: Booth::Userland::Webauths::Guards::Manageable
- Inherits:
-
Object
- Object
- Booth::Userland::Webauths::Guards::Manageable
- Includes:
- Logging, MethodObject
- Defined in:
- lib/booth/userland/webauths/guards/manageable.rb
Instance Method Summary collapse
Methods included from MethodObject
Instance Method Details
#call {|Tron.failure :webauth_not_configurable, public_message: I18n.t('booth.webauth_unavailable')| ... } ⇒ Object
11 12 13 14 15 16 |
# File 'lib/booth/userland/webauths/guards/manageable.rb', line 11 def call return if ::Booth::Credentials::Modes::WebauthManageable.call(credential) debug { 'Webauth is not relevant to this credential' } yield Tron.failure :webauth_not_configurable, public_message: I18n.t('booth.webauth_unavailable') end |