This project is archived and is in readonly mode.

Changeset [603b28c84c1ba1d013247fee450d82f015aaefb3] by Murray Steele

December 28th, 2009 @ 01:21 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/603b28c84c1ba1d013247fee450d82...

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>