Class: CurrentSession::AuthMethod::FindBy

Inherits:
CurrentSession::AuthMethod show all
Defined in:
lib/current_session/auth_method.rb

Overview

only exist users

Instance Attribute Summary

Attributes inherited from CurrentSession::AuthMethod

#request

Instance Method Summary collapse

Methods inherited from CurrentSession::AuthMethod

#auth, #initialize, new_auth_class

Constructor Details

This class inherits a constructor from CurrentSession::AuthMethod

Instance Method Details

#call(&block) ⇒ Object



12
13
14
# File 'lib/current_session/auth_method.rb', line 12

def call(&block)
  find_by_auth.try(&block)
end