Skip to content

Commit 81d6012

Browse files
authored
Merge pull request rails#45538 from hexdevs/custom-validator-loaded-note
Clarify how `EachValidator` is automatically loaded [ci-skip]
2 parents c3fd9f1 + ecbca0c commit 81d6012

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

guides/source/active_record_validations.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,7 @@ class MyValidator < ActiveModel::Validator
10781078
end
10791079
end
10801080

1081-
class Person
1082-
include ActiveModel::Validations
1081+
class Person < ApplicationRecord
10831082
validates_with MyValidator
10841083
end
10851084
```

0 commit comments

Comments
 (0)