aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-10-27 19:39:22 +0200
committerPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-10-27 21:15:41 +0200
commit6b71a1416cb1457517b27cd0a55cb32df0cdf0c3 (patch)
tree207643bae962d99f0a32973010217837909662fa /activerecord/test/models
parent52199d1fd41ffc439357c16a7873fb04444175cd (diff)
downloadrails-6b71a1416cb1457517b27cd0a55cb32df0cdf0c3.tar.gz
rails-6b71a1416cb1457517b27cd0a55cb32df0cdf0c3.tar.bz2
rails-6b71a1416cb1457517b27cd0a55cb32df0cdf0c3.zip
Skip `include_values` from through associations chains for building target scope
Fixes: #12242, #9517, #10240
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/post.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb
index 452d54580a..faf539a562 100644
--- a/activerecord/test/models/post.rb
+++ b/activerecord/test/models/post.rb
@@ -65,6 +65,9 @@ class Post < ActiveRecord::Base
has_many :author_favorites, :through => :author
has_many :author_categorizations, :through => :author, :source => :categorizations
has_many :author_addresses, :through => :author
+ has_many :author_address_extra_with_address,
+ through: :author_with_address,
+ source: :author_address_extra
has_many :comments_with_interpolated_conditions,
->(p) { where "#{"#{p.aliased_table_name}." rescue ""}body = ?", 'Thank you for the welcome' },