This project is archived and is in readonly mode.

Changeset [91fd6510563f84ee473bb217bc63ed598abe3f24] 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]

Committed by Jon Leighton

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>