Skip to content
This repository
Browse code

oops!

  • Loading branch information...
commit ee7516436ebb0c415c1b977dfde0fcf42ac017f4 1 parent 67978d6
Aaron Patterson tenderlove authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/lib/active_record/reflection.rb
2  activerecord/lib/active_record/reflection.rb
@@ -594,7 +594,7 @@ def nested?
594 594 # We want to use the klass from this reflection, rather than just delegate straight to
595 595 # the source_reflection, because the source_reflection may be polymorphic. We still
596 596 # need to respect the source_reflection's :primary_key option, though.
597   - def association_primary_key(target_class = nil)
  597 + def association_primary_key(klass = nil)
598 598 # Get the "actual" source reflection if the immediate source reflection has a
599 599 # source reflection itself
600 600 actual_source_reflection.options[:primary_key] || primary_key(klass || self.klass)

0 comments on commit ee75164

Please sign in to comment.
Something went wrong with that request. Please try again.