diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-17 23:03:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-17 23:03:48 +0000 |
commit | e39bf105941133d3d6699c52c18dbd3b9aa0bf5c (patch) | |
tree | 600b99aac2e1298c3b92ee3381d1b7fe6bd6ea34 /activerecord/CHANGELOG | |
parent | 2af41fc0367920f7ac6274e057d67b977800ca00 (diff) | |
download | rails-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/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 10 |
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 |