Skip to content

Commit

Permalink
Merge pull request #47857 from Valerii-Pi/patch-3
Browse files Browse the repository at this point in the history
Update active_record_validations.md
  • Loading branch information
zzak committed Apr 9, 2023
2 parents 5b4eb26 + 7ab8ce3 commit 450e338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_validations.md
Expand Up @@ -1241,7 +1241,7 @@ the `validates_with` method.
class MyValidator < ActiveModel::Validator
def validate(record)
unless record.name.start_with? 'X'
record.errors.add :name, "Need a name starting with X please!"
record.errors.add :name, "Provide a name starting with X, please!"
end
end
end
Expand Down

0 comments on commit 450e338

Please sign in to comment.