Class: User

Inherits:
ApplicationRecord show all
Defined in:
app/models/user.rb

Class Method Summary collapse

Class Method Details

.from_saml_callback(response_attrs) ⇒ Object


14
15
16
17
18
19
# File 'app/models/user.rb', line 14

def self.from_saml_callback(response_attrs)
  email = response_attrs[:va_eauth_emailaddress]
  return if email.blank?

  find_by(email: email.downcase)
end