Skip to content

Commit b6ade9e

Browse files
committed
Fix user generator to fit initial rubocop rules
[FIX rails#53117]
1 parent 5df633d commit b6ade9e

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/authentication/templates/app/models

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/authentication/templates/app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ class User < ApplicationRecord
22
has_secure_password
33
has_many :sessions, dependent: :destroy
44

5-
normalizes :email_address, with: -> e { e.strip.downcase }
5+
normalizes :email_address, with: ->(e) { e.strip.downcase }
66
end

0 commit comments

Comments
 (0)