aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/price_estimates.yml
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-02-17 13:56:55 -0800
committerSean Griffin <sean@seantheprogrammer.com>2016-02-17 13:56:55 -0800
commitf1866e81a392f61552bc03b4f9a54b97d65e98f0 (patch)
tree4168ff2a31a39b8a9c6161fedc5fa6ee01c9b35f /activerecord/test/fixtures/price_estimates.yml
parent011711ecc9bfe9bdbc1fc17d57d511373954d415 (diff)
parent359adaedd95293af3abde954279ad51e11856d57 (diff)
downloadrails-f1866e81a392f61552bc03b4f9a54b97d65e98f0.tar.gz
rails-f1866e81a392f61552bc03b4f9a54b97d65e98f0.tar.bz2
rails-f1866e81a392f61552bc03b4f9a54b97d65e98f0.zip
Merge pull request #22365 from phuibonhoa/phuibonhoa/polymorphic_where_multiple_types
Fixed `where` for polymorphic associations when passed an array containing different types.
Diffstat (limited to 'activerecord/test/fixtures/price_estimates.yml')
-rw-r--r--activerecord/test/fixtures/price_estimates.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/price_estimates.yml b/activerecord/test/fixtures/price_estimates.yml
index 1149ab17a2..406d65a142 100644
--- a/activerecord/test/fixtures/price_estimates.yml
+++ b/activerecord/test/fixtures/price_estimates.yml
@@ -1,7 +1,16 @@
-saphire_1:
+sapphire_1:
price: 10
estimate_of: sapphire (Treasure)
sapphire_2:
price: 20
estimate_of: sapphire (Treasure)
+
+diamond:
+ price: 30
+ estimate_of: diamond (Treasure)
+
+honda:
+ price: 40
+ estimate_of_type: Car
+ estimate_of_id: 1