1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/models/price_estimate.rb
Jon Leighton eb4a623d74 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.
2012-09-12 23:32:50 +01:00

4 lines
132 B
Ruby

class PriceEstimate < ActiveRecord::Base
belongs_to :estimate_of, :polymorphic => true
belongs_to :thing, polymorphic: true
end