module Authenticate::Model::Email

Use :email as the identifier for the user. Email must be unique.

Columns

Validations

Callbacks

Methods

Class Methods

Public Class Methods

required_fields(_klass) click to toggle source
# File lib/authenticate/model/email.rb, line 28
def self.required_fields(_klass)
  [:email]
end

Public Instance Methods

normalize_email() click to toggle source

Sets the email on this instance to the value returned by class method normalize_email

@return [String]

# File lib/authenticate/model/email.rb, line 64
def normalize_email
  self.email = self.class.normalize_email(email)
end