Skip to content

Commit 9f8a3db

Browse files
committed
Strongly dislike the _1 aesthetic
1 parent ee5cd6f commit 9f8a3db

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/authentication/templates/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: -> { _1.strip.downcase }
5+
normalizes :email_address, with: -> { |e| e.strip.downcase }
66
end

0 commit comments

Comments
 (0)