aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/author.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2008-03-24 02:50:02 +0000
committerRick Olson <technoweenie@gmail.com>2008-03-24 02:50:02 +0000
commit081ddb6f24d70794ee9e071d3ed5302f52b26c4d (patch)
treea5c8e4a4f02cd38cfb182bdaf0e8491c7a0586d4 /activerecord/test/models/author.rb
parent5bf4cbbdb74dfaaac258dc93e54dcae8295211e9 (diff)
downloadrails-081ddb6f24d70794ee9e071d3ed5302f52b26c4d.tar.gz
rails-081ddb6f24d70794ee9e071d3ed5302f52b26c4d.tar.bz2
rails-081ddb6f24d70794ee9e071d3ed5302f52b26c4d.zip
Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/models/author.rb')
-rw-r--r--activerecord/test/models/author.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb
index 523d794fb3..79a121b4a4 100644
--- a/activerecord/test/models/author.rb
+++ b/activerecord/test/models/author.rb
@@ -3,6 +3,7 @@ class Author < ActiveRecord::Base
has_many :posts_with_comments, :include => :comments, :class_name => "Post"
has_many :posts_with_categories, :include => :categories, :class_name => "Post"
has_many :posts_with_comments_and_categories, :include => [ :comments, :categories ], :order => "posts.id", :class_name => "Post"
+ has_many :posts_containing_the_letter_a, :class_name => "Post"
has_many :posts_with_extension, :class_name => "Post" do #, :extend => ProxyTestExtension
def testing_proxy_owner
proxy_owner
@@ -15,6 +16,7 @@ class Author < ActiveRecord::Base
end
end
has_many :comments, :through => :posts
+ has_many :comments_containing_the_letter_e, :through => :posts, :source => :comments
has_many :comments_desc, :through => :posts, :source => :comments, :order => 'comments.id DESC'
has_many :limited_comments, :through => :posts, :source => :comments, :limit => 1
has_many :funky_comments, :through => :posts, :source => :comments