diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-10-19 13:33:22 +0100 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-10-19 13:33:22 +0100 |
commit | c3fc00e005df5dff129ced2714952d95579bba7d (patch) | |
tree | 9a3c3e7e2e5a17daf11ae99ed6a69cd693fc35b0 /guides | |
parent | 9bbff50cc272862305593cc0d5f930f688e5955f (diff) | |
parent | a77089c1c5f88246ff09bb7ffbcda2b6857c8410 (diff) | |
download | rails-c3fc00e005df5dff129ced2714952d95579bba7d.tar.gz rails-c3fc00e005df5dff129ced2714952d95579bba7d.tar.bz2 rails-c3fc00e005df5dff129ced2714952d95579bba7d.zip |
Merge pull request #17318 from igas/guides-more-friendly-for-nonlatin
make guides example more friendly to nonlatin langs [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index cba4b852a1..332af44e79 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -706,7 +706,7 @@ we don't want names and surnames to begin with lower case. ```ruby class Person < ActiveRecord::Base validates_each :name, :surname do |record, attr, value| - record.errors.add(attr, 'must start with upper case') if value =~ /\A[a-z]/ + record.errors.add(attr, 'must start with upper case') if value =~ /\A[[:alpha:]]/ end end ``` |