aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-17 23:03:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-17 23:03:48 +0000
commite39bf105941133d3d6699c52c18dbd3b9aa0bf5c (patch)
tree600b99aac2e1298c3b92ee3381d1b7fe6bd6ea34 /activerecord
parent2af41fc0367920f7ac6274e057d67b977800ca00 (diff)
downloadrails-e39bf105941133d3d6699c52c18dbd3b9aa0bf5c.tar.gz
rails-e39bf105941133d3d6699c52c18dbd3b9aa0bf5c.tar.bz2
rails-e39bf105941133d3d6699c52c18dbd3b9aa0bf5c.zip
Loading the Routes should happen in the environments #655
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index d05ecfbe31..95962f74b6 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,15 @@
*SVN*
+* Added validates_each that validates each specified attribute against a block #610 [bitsweat]. Example:
+
+ class Person < ActiveRecord::Base
+ validates_each :first_name, :last_name do |record, attr|
+ record.errors.add attr, 'starts with z.' if attr[0] == ?z
+ end
+ end
+
+* Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [bitsweat]
+
* Added that validates_* now accept blocks to perform validations #618 [Tim Bates]. Example:
class Person < ActiveRecord::Base