Skip to content

Commit 7ab8ce3

Browse files
authored
Update active_record_validations.md
1 parent c7f06b5 commit 7ab8ce3

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
@@ -1240,7 +1240,7 @@ the `validates_with` method.
12401240
class MyValidator < ActiveModel::Validator
12411241
def validate(record)
12421242
unless record.name.start_with? 'X'
1243-
record.errors.add :name, "Need a name starting with X please!"
1243+
record.errors.add :name, "Provide a name starting with X, please!"
12441244
end
12451245
end
12461246
end

0 commit comments

Comments
 (0)