Skip to content

Commit

Permalink
passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklynhma committed Nov 15, 2024
1 parent e76b7bb commit 94f31e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class User < ApplicationRecord
message: "can only contain letters, numbers, and underscores"
}, allow_nil: true, length: { within: 0..20 }

validates_formatting_of :homepage_url, using: :url, allow_nil: true
validates_formatting_of :homepage_url, using: :url, allow_blank: true

validates :password,
length: { minimum: 10 },
Expand Down

0 comments on commit 94f31e5

Please sign in to comment.