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 db5f721 commit e7d4aab
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 @@ -62,7 +62,7 @@ end

And again, that `ImmutableDog` consists of one line of plain Ruby and two lines of standard Rails validations.

### `attr_reader` followed by `validates` is such a common pattern that there's a second DSL which wraps them up into one call: `validates_attr`.
### `attr_reader` followed by `validates` is such a common pattern that there's a DSL which wraps them up into one call: `validates_attr`.

Here's the immutable version of `Dog` re-written with the new, simplified DSL:

Expand Down

0 comments on commit e7d4aab

Please sign in to comment.