aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2014-12-20 18:57:06 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2016-01-31 02:30:09 +0900
commit12e9e38d9a550f77936c29d14a8b8156cdfa81be (patch)
treee410baff3108d7f6cf68c8b67a2bd8528400793b /activerecord/test/models
parenta59212709c1daddf1c3703198cc3e45fd5226baf (diff)
downloadrails-12e9e38d9a550f77936c29d14a8b8156cdfa81be.tar.gz
rails-12e9e38d9a550f77936c29d14a8b8156cdfa81be.tar.bz2
rails-12e9e38d9a550f77936c29d14a8b8156cdfa81be.zip
Allow `joins` to be unscoped
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/comment.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb
index b38b17e90e..dcc5c5a310 100644
--- a/activerecord/test/models/comment.rb
+++ b/activerecord/test/models/comment.rb
@@ -14,6 +14,7 @@ class Comment < ActiveRecord::Base
has_many :ratings
belongs_to :first_post, :foreign_key => :post_id
+ belongs_to :special_post_with_default_scope, foreign_key: :post_id
has_many :children, :class_name => 'Comment', :foreign_key => :parent_id
belongs_to :parent, :class_name => 'Comment', :counter_cache => :children_count