Sha256: 6adba5ce0bb23ae6dcc74f1e63b365b618cb18af55efba6f623c73ed06664948

Contents?: true

Size: 276 Bytes

Versions: 9

Compression:

Stored size: 276 Bytes

Contents

class User < ApplicationRecord
  include CanResetPassword
  # include MustVerifyEmail

  has_secure_password

  normalizes :email, with: ->(email) { email.strip.downcase }

  generates_token_for :password_reset, expires_in: 60.minutes do
    password_salt&.last(10)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kaze-0.17.0 stubs/default/app/models/user.rb
kaze-0.16.0 stubs/default/app/models/user.rb
kaze-0.15.0 stubs/default/app/models/user.rb
kaze-0.14.0 stubs/default/app/models/user.rb
kaze-0.13.0 stubs/default/app/models/user.rb
kaze-0.12.0 stubs/default/app/models/user.rb
kaze-0.11.0 stubs/default/app/models/user.rb
kaze-0.10.0 stubs/default/app/models/user.rb
kaze-0.9.0 stubs/default/app/models/user.rb