aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-04-25 05:49:14 +0000
committerRick Olson <technoweenie@gmail.com>2006-04-25 05:49:14 +0000
commitc61b10b62be9f57dd847242471b4a30da81f16d4 (patch)
tree3e355664201bbd0ec56d61e108763886399289d3 /activerecord/CHANGELOG
parent4251662c1a4dbec8c69d4ab1b677950a0b4cfb58 (diff)
downloadrails-c61b10b62be9f57dd847242471b4a30da81f16d4.tar.gz
rails-c61b10b62be9f57dd847242471b4a30da81f16d4.tar.bz2
rails-c61b10b62be9f57dd847242471b4a30da81f16d4.zip
Raise error when trying to add to a has_many :through association. Use the Join Model instead. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 296070b865..89b23c1e96 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,10 @@
*SVN*
+* Raise error when trying to add to a has_many :through association. [Rick]
+
+ @post.tags << @tag # BAD
+ @post.taggings.create(:tag => @tag) # GOOD
+
* Allow all calculations to take the :include option, not just COUNT (closes #4840) [Rick]
* Update inconsistent migrations documentation. #4683 [machomagna@gmail.com]