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:
parent
9014c8e615
commit
1cc9550c80
10 changed files with 13 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue