aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-15 17:52:08 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-15 17:52:08 +0000
commit51390b8524a644aa8655691fc7bf56e2a174d140 (patch)
tree5e982bec1cfe5b730930f0996a4330fbc652f0d9 /activerecord/CHANGELOG
parent823554eafef9e8ee8fe2788f6231a3e665c2cbbf (diff)
downloadrails-51390b8524a644aa8655691fc7bf56e2a174d140.tar.gz
rails-51390b8524a644aa8655691fc7bf56e2a174d140.tar.bz2
rails-51390b8524a644aa8655691fc7bf56e2a174d140.zip
Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index d43e6a0537..ba5cf01178 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,14 @@
*SVN*
+* Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]. Example:
+
+ class Book < ActiveRecord::Base
+ has_many :pages
+ belongs_to :library
+
+ validates_associated :pages, :library
+ end
+
* Added support for associating unsaved objects #402 [Tim Bates]. Rules that govern this addition:
== Unsaved objects and associations