aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorIgor Kapkov <igasgeek@me.com>2014-10-19 20:25:57 +0800
committerIgor Kapkov <igasgeek@me.com>2014-10-19 20:25:57 +0800
commita77089c1c5f88246ff09bb7ffbcda2b6857c8410 (patch)
tree9a3c3e7e2e5a17daf11ae99ed6a69cd693fc35b0 /guides/source
parent9bbff50cc272862305593cc0d5f930f688e5955f (diff)
downloadrails-a77089c1c5f88246ff09bb7ffbcda2b6857c8410.tar.gz
rails-a77089c1c5f88246ff09bb7ffbcda2b6857c8410.tar.bz2
rails-a77089c1c5f88246ff09bb7ffbcda2b6857c8410.zip
make guides example more friendly to nonlatin langs
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_record_validations.md2
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
```