From 421c81bd1875eb4e163bea8ce18b1ae9c2224e7d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 14 Nov 2013 14:43:14 -0800 Subject: Fix that eager loading of polymorphic associations did not work with association empty?/any? predicates any more (there is still a problem when select is applied to a relation, or if you try association#exists? -- but its easier to work around) --- activerecord/test/cases/associations/eager_test.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activerecord/test/cases/associations/eager_test.rb') diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb index fa54eb28b4..498a4e8144 100644 --- a/activerecord/test/cases/associations/eager_test.rb +++ b/activerecord/test/cases/associations/eager_test.rb @@ -1188,8 +1188,6 @@ class EagerAssociationTest < ActiveRecord::TestCase end test "preloading with a polymorphic association and using the existential predicate" do - skip 'broken test' - assert_equal authors(:david), authors(:david).essays.includes(:writer).first.writer assert_nothing_raised do -- cgit v1.2.3