a11yist/app/models/user.rb

7 lines
162 B
Ruby
Raw Normal View History

class User < ApplicationRecord
has_secure_password
has_many :sessions, dependent: :destroy
normalizes :email_address, with: ->(e) { e.strip.downcase }
end