From 44046d0782be0737ec68964695a63a56727d17e1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 29 Aug 2013 11:49:23 -0700 Subject: pk should not be required for hm:t associations --- activerecord/lib/active_record/reflection.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index f428f160cf..5245fc130a 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -422,7 +422,6 @@ module ActiveRecord def valid_inverse_reflection?(reflection) reflection && klass.name == reflection.active_record.name && - klass.primary_key == reflection.active_record_primary_key && can_find_inverse_of_automatically?(reflection) end -- cgit v1.2.3