From eb4a623d74fe501ac73dc53d77cfca0d9d4ee01b Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Wed, 12 Sep 2012 23:32:50 +0100 Subject: Fix nested association references Previously the reflection would be looked up on the wrong class. However the test passed because the examples referred back to themselves. --- activerecord/test/models/price_estimate.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/price_estimate.rb b/activerecord/test/models/price_estimate.rb index ef3bba36a9..d09e2a88a3 100644 --- a/activerecord/test/models/price_estimate.rb +++ b/activerecord/test/models/price_estimate.rb @@ -1,3 +1,4 @@ class PriceEstimate < ActiveRecord::Base belongs_to :estimate_of, :polymorphic => true + belongs_to :thing, polymorphic: true end -- cgit v1.2.3