aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-04-05 15:36:02 +0000
committerRick Olson <technoweenie@gmail.com>2006-04-05 15:36:02 +0000
commit4d232025b7260834dc4a4403b2b9effd043215c4 (patch)
tree81d658cc663b852218d1ec2adb7a4b2d49231edb /activerecord/CHANGELOG
parent11323ceb2833512e727fba6d7a7f61befeee4bfd (diff)
downloadrails-4d232025b7260834dc4a4403b2b9effd043215c4.tar.gz
rails-4d232025b7260834dc4a4403b2b9effd043215c4.tar.bz2
rails-4d232025b7260834dc4a4403b2b9effd043215c4.zip
Added descriptive error messages for invalid has_many :through associations: going through :has_one or :has_and_belongs_to_many [Rick]
Added support for going through a polymorphic has_many association: (closes #4401) [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG14
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 4ffef99db6..dc61ab3c31 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,19 @@
*SVN*
+* Added descriptive error messages for invalid has_many :through associations: going through :has_one or :has_and_belongs_to_many [Rick]
+
+* Added support for going through a polymorphic has_many association: (closes #4401) [Rick]
+
+ class PhotoCollection < ActiveRecord::Base
+ has_many :photos, :as => :photographic
+ belongs_to :firm
+ end
+
+ class Firm < ActiveRecord::Base
+ has_many :photo_collections
+ has_many :photos, :through => :photo_collections
+ end
+
* Multiple fixes and optimizations in PostgreSQL adapter, allowing ruby-postgres gem to work properly. [ruben.nine@gmail.com]
* Fixed that AssociationCollection#delete_all should work even if the records of the association are not loaded yet. [Florian Weber]