Class: Authegy::User

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

Overview

User

Represents a person which is able to sign-in to the application. Users are intended for authentification, the actual profile sits in Person.

Direct Known Subclasses

User

Instance Method Summary collapse

Instance Method Details

#email=(value) ⇒ Object



25
26
27
28
# File 'lib/authegy/models/user.rb', line 25

def email=(value)
  return person.email = value if person.present?
  build_person(email: value).email
end