Skip to content

Commit

Permalink
Update CHANGELOG examples
Browse files Browse the repository at this point in the history
Co-authored-by: Petrik de Heus <petrik@deheus.net>
  • Loading branch information
guilleiguaran and p8 committed Apr 19, 2023
1 parent 74264f4 commit 63f0914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
to consider both character count and byte size while keeping the character length validation in place.

```ruby
user = User.new(password: "𝕒" * 73) # 73 characters
user = User.new(password: "a" * 73) # 73 characters
user.valid? # => false
user.errors[:password] # => ["is too long (maximum is 72 characters)"]


user = User.new(password: "𝕒" * 25) # 25 characters, 75 bytes
user = User.new(password: "" * 25) # 25 characters, 75 bytes
user.valid? # => false
user.errors[:password] # => ["is too long (maximum is 72 bytes)"]
```
Expand Down

0 comments on commit 63f0914

Please sign in to comment.