Skip to content

Commit 450e338

Browse files
authored
Merge pull request rails#47857 from Valerii-Pi/patch-3
Update active_record_validations.md
2 parents 5b4eb26 + 7ab8ce3 commit 450e338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_validations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ the `validates_with` method.
12411241
class MyValidator < ActiveModel::Validator
12421242
def validate(record)
12431243
unless record.name.start_with? 'X'
1244-
record.errors.add :name, "Need a name starting with X please!"
1244+
record.errors.add :name, "Provide a name starting with X, please!"
12451245
end
12461246
end
12471247
end

0 commit comments

Comments
 (0)