diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-24 15:41:54 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-24 17:10:54 +0900 |
commit | 4bdcd7a6549aa32949d94cf24ed7c1c9a9c09f07 (patch) | |
tree | 91475322b26f8eb7cdfd267130e7d13ade8365fc /activerecord/test | |
parent | 68418fbe9b6adf916a581ab0d3d29fe1de3412dd (diff) | |
download | rails-4bdcd7a6549aa32949d94cf24ed7c1c9a9c09f07.tar.gz rails-4bdcd7a6549aa32949d94cf24ed7c1c9a9c09f07.tar.bz2 rails-4bdcd7a6549aa32949d94cf24ed7c1c9a9c09f07.zip |
proxy_{owner,reflection,target} are no more available
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/models/author.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb index 6935cfb0ea..83904cd850 100644 --- a/activerecord/test/models/author.rb +++ b/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 |