Skip to content

Commit 0de10bd

Browse files
committed
Fix typo
1 parent e99aa34 commit 0de10bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

guides/source/active_record_validations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ class Person < ApplicationRecord
10041004
# with the actual value of the attribute. %{attribute} and %{model}
10051005
# are also available.
10061006
validates :age, numericality: { message: "%{value} seems wrong" }
1007+
end
10071008
```
10081009

10091010
A `Proc` `:message` value is given two arguments: the object being validated, and

0 commit comments

Comments
 (0)