aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-17 19:14:15 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-17 19:14:15 +0000
commit0e764a55991179dd371df8c0c5b5d5bd7fd2b793 (patch)
treeed2128ece13c71ec21514d7a3daba98330e6c68b /activerecord/CHANGELOG
parent8151c4e84d3ecad36357dc97a8d8e6b0399fa8d9 (diff)
downloadrails-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/CHANGELOG8
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