mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
eb4a623d74
Previously the reflection would be looked up on the wrong class. However the test passed because the examples referred back to themselves.
4 lines
132 B
Ruby
4 lines
132 B
Ruby
class PriceEstimate < ActiveRecord::Base
|
|
belongs_to :estimate_of, :polymorphic => true
|
|
belongs_to :thing, polymorphic: true
|
|
end
|