Permalink
Browse files

proxy_{owner,reflection,target} are no more available

  • Loading branch information...
1 parent 68418fb commit 4bdcd7a6549aa32949d94cf24ed7c1c9a9c09f07 @amatsuda amatsuda committed Jan 24, 2013
Showing with 1 addition and 11 deletions.
  1. +1 −11 activerecord/test/models/author.rb
@@ -9,17 +9,7 @@ class Author < ActiveRecord::Base
has_many :posts_with_categories, -> { includes(:categories) }, :class_name => "Post"
has_many :posts_with_comments_and_categories, -> { includes(: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
- end
- def testing_proxy_reflection
- proxy_reflection
- end
- def testing_proxy_target
- proxy_target
- end
- end
+ has_many :posts_with_extension, :class_name => "Post"
has_one :post_about_thinking, -> { where("posts.title like '%thinking%'") }, :class_name => 'Post'
has_one :post_about_thinking_with_last_comment, -> { where("posts.title like '%thinking%'").includes(:last_comment) }, :class_name => 'Post'
has_many :comments, :through => :posts

0 comments on commit 4bdcd7a

Please sign in to comment.