aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-10-06 12:06:51 +0100
committerJon Leighton <j@jonathanleighton.com>2010-10-06 12:06:51 +0100
commitf2b41914d6be935182d37e0c0d491352ac3de043 (patch)
tree8bd927df915c25b5e18432b1faafbf4f18488015 /activerecord/test/fixtures
parent3cc35633872a0072764d8edb20f1fc4e14adf729 (diff)
downloadrails-f2b41914d6be935182d37e0c0d491352ac3de043.tar.gz
rails-f2b41914d6be935182d37e0c0d491352ac3de043.tar.bz2
rails-f2b41914d6be935182d37e0c0d491352ac3de043.zip
Refactoring JoinDependency and friends. This improves the code (IMO) including adding some explanatory comments, but more importantly structures it in such a way as to allow a JoinAssociation to produce an arbitrary number of actual joins, which will be necessary for nested has many through support. Also added 3 tests covering functionality which existed but was not previously covered.
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r--activerecord/test/fixtures/comments.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/comments.yml b/activerecord/test/fixtures/comments.yml
index 97d77f8b9a..ddbb823c49 100644
--- a/activerecord/test/fixtures/comments.yml
+++ b/activerecord/test/fixtures/comments.yml
@@ -57,3 +57,9 @@ eager_other_comment1:
post_id: 7
body: go crazy
type: SpecialComment
+
+sub_special_comment:
+ id: 12
+ post_id: 4
+ body: Sub special comment
+ type: SubSpecialComment