Skip to content

Commit 5b4eb26

Browse files
authored
Merge pull request rails#47898 from hachi8833/fix_typo
Docs: Fix missing 'end' [ci-skip]
2 parents e99aa34 + 0de10bd commit 5b4eb26

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)