This project is archived and is in readonly mode.

Changeset [6a74ee7f4deea4a44520d3fcc9120e0bb848823f] by Murray Steele

December 28th, 2009 @ 02:12 PM

Provide a slightly more robust we_can_set_the_inverse_on_this? method for polymorphic belongs_to associations. [#3520 state:resolved]

Also add a new test for polymorphic belongs_to that test direct accessor assignment, not just .replace assignment.

Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/6a74ee7f4deea4a44520d3fcc9120e...

Committed by Murray Steele

  • M activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb
  • M activerecord/test/cases/associations/inverse_associations_test.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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>