From dda4f608902752c5071809cedbe675086f0669be Mon Sep 17 00:00:00 2001 From: kal Date: Fri, 16 Oct 2015 02:18:36 +0000 Subject: Changed the order of Association constraints from where->order->unscope to unscope->where->order --- activerecord/test/models/post.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index 81a18188d4..45a379df98 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -67,6 +67,7 @@ class Post < ActiveRecord::Base end has_many :comments_with_extend_2, extend: [NamedExtension, NamedExtension2], class_name: "Comment", foreign_key: "post_id" + has_many :comments_with_rewhere, -> { rewhere(post_id: 2) }, class_name: "Comment" has_many :author_favorites, :through => :author has_many :author_categorizations, :through => :author, :source => :categorizations -- cgit v1.2.3