From 899a3ede93f410e9da95b7361284c22aa00a0e52 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 5 Aug 2022 14:44:57 +0100 Subject: [PATCH] Rubocop --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index bbe81c0ea..168e33411 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -10,8 +10,8 @@ class User < ApplicationRecord validates :name, presence: true validates :email, presence: true, uniqueness: true - validates_format_of :email, with: Devise.email_regexp - validates_length_of :password, within: Devise.password_length, allow_blank: true + validates :email, format: { with: Devise.email_regexp } + validates :password, length: { within: Devise.password_length, allow_blank: true } has_paper_trail ignore: %w[last_sign_in_at current_sign_in_at