From 12e9e38d9a550f77936c29d14a8b8156cdfa81be Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 20 Dec 2014 18:57:06 +0900 Subject: Allow `joins` to be unscoped --- activerecord/test/models/comment.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/models') 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 -- cgit v1.2.3