diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-17 19:14:15 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-17 19:14:15 +0000 |
commit | 0e764a55991179dd371df8c0c5b5d5bd7fd2b793 (patch) | |
tree | ed2128ece13c71ec21514d7a3daba98330e6c68b /activerecord/CHANGELOG | |
parent | 8151c4e84d3ecad36357dc97a8d8e6b0399fa8d9 (diff) | |
download | rails-0e764a55991179dd371df8c0c5b5d5bd7fd2b793.tar.gz rails-0e764a55991179dd371df8c0c5b5d5bd7fd2b793.tar.bz2 rails-0e764a55991179dd371df8c0c5b5d5bd7fd2b793.zip |
Addded validation for validate all the associated objects before declaring failure with validates_associated #618 [Tim Bates]. Added that validates_* now accept blocks to perform validations #618 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index e2dfa77e0b..d05ecfbe31 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,13 @@ *SVN* +* Added that validates_* now accept blocks to perform validations #618 [Tim Bates]. Example: + + class Person < ActiveRecord::Base + validate { |person| person.errors.add("title", "will never be valid") if SHOULD_NEVER_BE_VALID } + end + +* Addded validation for validate all the associated objects before declaring failure with validates_associated #618 [Tim Bates] + * Added keyword-style approach to defining the custom relational bindings #545 [Jamis Buck]. Example: class Project < ActiveRecord::Base |