aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-03-27 21:00:06 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-03-27 21:00:06 -0700
commitc81e4e6a2657f3f67b99a2f88e2909c36c9f3863 (patch)
tree7a1ed3017b80639d6266056577d3ca1d6fc77711 /activerecord/test/models
parentdd3ea17191e316aeebddaa7b176f6cfeee7a6365 (diff)
parent70a5e5638bfd3b2543bb9d4805cbefec84b6b1ce (diff)
downloadrails-c81e4e6a2657f3f67b99a2f88e2909c36c9f3863.tar.gz
rails-c81e4e6a2657f3f67b99a2f88e2909c36c9f3863.tar.bz2
rails-c81e4e6a2657f3f67b99a2f88e2909c36c9f3863.zip
Merge pull request #14154 from al2o3cr/issue12770
Pass a base relation to build_default_scope when joining
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/category.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/category.rb b/activerecord/test/models/category.rb
index 7da39a8e33..272223e1d8 100644
--- a/activerecord/test/models/category.rb
+++ b/activerecord/test/models/category.rb
@@ -22,6 +22,7 @@ class Category < ActiveRecord::Base
end
has_many :categorizations
+ has_many :special_categorizations
has_many :post_comments, :through => :posts, :source => :comments
has_many :authors, :through => :categorizations