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

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=""></a>