From a77089c1c5f88246ff09bb7ffbcda2b6857c8410 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Sun, 19 Oct 2014 20:25:57 +0800 Subject: make guides example more friendly to nonlatin langs --- guides/source/active_record_validations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') 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 ``` -- cgit v1.2.3