diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-10-19 00:27:40 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2010-10-19 00:27:40 +0100 |
commit | 9ec07348749675110843c44f680da79223218db2 (patch) | |
tree | e4a356d2b6ee95232097fac21df5a04118dcc014 /activerecord/test/fixtures | |
parent | 78b8c51cb3b0c629152f3bbaf6d8bcf988cc936e (diff) | |
download | rails-9ec07348749675110843c44f680da79223218db2.tar.gz rails-9ec07348749675110843c44f680da79223218db2.tar.bz2 rails-9ec07348749675110843c44f680da79223218db2.zip |
Properly support conditions on any of the reflections involved in a nested through association
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/posts.yml | 14 | ||||
-rw-r--r-- | activerecord/test/fixtures/taggings.yml | 28 | ||||
-rw-r--r-- | activerecord/test/fixtures/tags.yml | 4 |
3 files changed, 46 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/posts.yml b/activerecord/test/fixtures/posts.yml index ca6d4c2fe1..264ca164f0 100644 --- a/activerecord/test/fixtures/posts.yml +++ b/activerecord/test/fixtures/posts.yml @@ -64,3 +64,17 @@ misc_by_mary: title: misc post by mary body: hello type: Post + +other_by_bob: + id: 10 + author_id: 3 + title: other post by bob + body: hello + type: Post + +other_by_mary: + id: 11 + author_id: 2 + title: other post by mary + body: hello + type: Post diff --git a/activerecord/test/fixtures/taggings.yml b/activerecord/test/fixtures/taggings.yml index 7cc7198ded..a337cce019 100644 --- a/activerecord/test/fixtures/taggings.yml +++ b/activerecord/test/fixtures/taggings.yml @@ -38,3 +38,31 @@ misc_post_by_mary: tag_id: 2 taggable_id: 9 taggable_type: Post + +misc_by_bob_blue_first: + id: 8 + tag_id: 3 + taggable_id: 8 + taggable_type: Post + comment: first + +misc_by_bob_blue_second: + id: 9 + tag_id: 3 + taggable_id: 8 + taggable_type: Post + comment: second + +other_by_bob_blue: + id: 10 + tag_id: 3 + taggable_id: 10 + taggable_type: Post + comment: first + +other_by_mary_blue: + id: 11 + tag_id: 3 + taggable_id: 11 + taggable_type: Post + comment: first diff --git a/activerecord/test/fixtures/tags.yml b/activerecord/test/fixtures/tags.yml index 6cb886dc46..d4b7c9a4d5 100644 --- a/activerecord/test/fixtures/tags.yml +++ b/activerecord/test/fixtures/tags.yml @@ -5,3 +5,7 @@ general: misc: id: 2 name: Misc + +blue: + id: 3 + name: Blue |