Class: Cangaroo::AuthenticateConnection
- Inherits:
-
Object
- Object
- Cangaroo::AuthenticateConnection
- Includes:
- Interactor
- Defined in:
- app/interactors/cangaroo/authenticate_connection.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 10 |
# File 'app/interactors/cangaroo/authenticate_connection.rb', line 7 def call context.source_connection || context.fail!(message: 'wrong credentials', error_code: 401) end |