Sha256: 8b3bb0b5bcb290e679563428f96d772de68135d6b74d2a04b868e8c59c6741b4

Contents?: true

Size: 161 Bytes

Versions: 6

Compression:

Stored size: 161 Bytes

Contents

class User < ApplicationRecord
  has_secure_password
  has_many :sessions, dependent: :destroy

  normalizes :email_address, with: -> e { e.strip.downcase }
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
railties-8.0.0.beta1 lib/rails/generators/rails/authentication/templates/models/user.rb
omg-railties-8.0.0.alpha9 lib/rails/generators/rails/authentication/templates/models/user.rb
omg-railties-8.0.0.alpha8 lib/rails/generators/rails/authentication/templates/models/user.rb
omg-railties-8.0.0.alpha7 lib/rails/generators/rails/authentication/templates/models/user.rb
omg-railties-8.0.0.alpha4 lib/rails/generators/rails/authentication/templates/models/user.rb
omg-railties-8.0.0.alpha3 lib/rails/generators/rails/authentication/templates/models/user.rb