This project is archived and is in readonly mode.
Changeset [91fd6510563f84ee473bb217bc63ed598abe3f24] by Jon Leighton
Revision 91fd6510563f84ee473bb217bc63ed598abe3f24,
committed by Jon Leighton
· February 18th, 2011 @ 12:00 AM
Allow building and then later saving has_many :through records,
such that the join record is automatically saved too. This requires
the :inverse_of option to be set on the source association in the
join model. See the CHANGELOG for details. [#4329
state:resolved]
https://github.com/rails/rails/commit/91fd6510563f84ee473bb217bc63e...
7 changed files
-
M
activerecord/CHANGELOG -
M
activerecord/lib/active_record/associations.rb -
M
activerecord/lib/active_record/associations/has_many_through_association.rb -
M
activerecord/test/cases/associations/has_many_through_associations_test.rb -
M
activerecord/test/models/person.rb -
M
activerecord/test/models/post.rb -
M
activerecord/test/models/reader.rb