aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-03-24 14:46:17 +0000
committerRick Olson <technoweenie@gmail.com>2006-03-24 14:46:17 +0000
commit38bae0a9695aeaf200b5d62cee2dba2928c847d9 (patch)
tree9d22babe8d9ebf70e6e095a4e4e78bcb5ffb0e8a /activerecord/CHANGELOG
parentcb069ea7cc0c530b6d1a3cbd636d728568b3f041 (diff)
downloadrails-38bae0a9695aeaf200b5d62cee2dba2928c847d9.tar.gz
rails-38bae0a9695aeaf200b5d62cee2dba2928c847d9.tar.bz2
rails-38bae0a9695aeaf200b5d62cee2dba2928c847d9.zip
Change has_many :through to use the :source option to specify the source association. :class_name is now ignored. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG13
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index b822e8d702..afceb51180 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,18 @@
*SVN*
+* Change has_many :through to use the :source option to specify the source association. :class_name is now ignored. [Rick Olson]
+
+ class Connection < ActiveRecord::Base
+ belongs_to :user
+ belongs_to :channel
+ end
+
+ class Channel < ActiveRecord::Base
+ has_many :connections
+ has_many :contacts, :through => :connections, :class_name => 'User' # OLD
+ has_many :contacts, :through => :connections, :source => :user # NEW
+ end
+
* Fixed DB2 adapter so nullable columns will be determines correctly now and quotes from column default values will be removed #4350 [contact@maik-schmidt.de]
* Allow overriding of find parameters in scoped has_many :through calls [Rick Olson]