diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-18 07:35:07 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-18 07:35:07 +0000 |
commit | 0da426be96d9e02b1b7a34e364dff984cd4218f3 (patch) | |
tree | de89954a3a945e2a8f7750684e4eeea1a9f05ee4 /activesupport | |
parent | 18057d2fb6017df988fadc6496f187c2e6208277 (diff) | |
download | rails-0da426be96d9e02b1b7a34e364dff984cd4218f3.tar.gz rails-0da426be96d9e02b1b7a34e364dff984cd4218f3.tar.bz2 rails-0da426be96d9e02b1b7a34e364dff984cd4218f3.zip |
Add records to has_many :through using <<, push, and concat by creating the association record. Raise if base or associate are new records since both ids are required to create the association. #build raises since you can't associate an unsaved record. #create! takes an attributes hash and creates the associated record and its association in a transaction.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
0 files changed, 0 insertions, 0 deletions