diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-29 11:49:23 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-29 11:49:23 -0700 |
commit | 44046d0782be0737ec68964695a63a56727d17e1 (patch) | |
tree | a0aa3fc50d493efbd2f0bc775514425d0137a5b2 /activerecord/lib/active_record | |
parent | 0b3a078a24819fae8b9df0b0f63a264cece70a7c (diff) | |
download | rails-44046d0782be0737ec68964695a63a56727d17e1.tar.gz rails-44046d0782be0737ec68964695a63a56727d17e1.tar.bz2 rails-44046d0782be0737ec68964695a63a56727d17e1.zip |
pk should not be required for hm:t associations
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 1 |
1 files changed, 0 insertions, 1 deletions
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 |