1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Lint files to rubocop omakase standards

root ➜ /workspace (fix-rubocop-issues) $ rubocop
Inspecting 54 files
......................................................

54 files inspected, no offenses detected
This commit is contained in:
Rob Zolkos 2024-02-02 16:06:55 +00:00
parent 9014c8e615
commit 1cc9550c80
10 changed files with 13 additions and 17 deletions

View file

@ -1,10 +1,10 @@
class User < ApplicationRecord
has_secure_password
belongs_to :family
validates :email, presence: true, uniqueness: true
normalizes :email, with: -> (email) { email.strip.downcase }
normalizes :email, with: ->(email) { email.strip.downcase }
generates_token_for :password_reset, expires_in: 15.minutes do
password_salt&.last(10)