Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dogweather authored May 2, 2024
1 parent c9a5bcd commit 56106db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end

# Instantiating it runs the validations.
me = Person.new(name: 'Robb')
you = Person.new(name: '') # => "ArgumentError: Name can't be blank"
you = Person.new(name: '') # => ArgumentError: "Name can't be blank"
```

Note how Person's two lines of code are nothing new: `attr_reader` is standard Ruby. [`validates`](https://guides.rubyonrails.org/active_record_validations.html) is standard Rails. I use classes like these as Data Transfer Objects at my system boundaries.
Expand Down

0 comments on commit 56106db

Please sign in to comment.