Class: CurrentSession::AuthMethod::FindOrCreateBy

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

Overview

admit new 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



19
20
21
# File 'lib/current_session/auth_method.rb', line 19

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