aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/comment.rb
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/models/comment.rb
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/models/comment.rb')
-rw-r--r--activerecord/test/models/comment.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb
index 9f6e2d3b71..88061b2145 100644
--- a/activerecord/test/models/comment.rb
+++ b/activerecord/test/models/comment.rb
@@ -23,6 +23,9 @@ class SpecialComment < Comment
end
end
+class SubSpecialComment < SpecialComment
+end
+
class VerySpecialComment < Comment
def self.what_are_you
'a very special comment...'