Class: Booth::Userland::Webauths::Guards::Manageable

Inherits:
Object
  • Object
show all
Includes:
Logging, MethodObject
Defined in:
lib/booth/userland/webauths/guards/manageable.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#call {|Tron.failure :webauth_not_configurable, public_message: I18n.t('booth.webauth_unavailable')| ... } ⇒ Object

Yields:

  • (Tron.failure :webauth_not_configurable, public_message: I18n.t('booth.webauth_unavailable'))


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