Flowdock
method

association_primary_key

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection::ThroughReflection
association_primary_key(klass = nil) public

We want to use the klass from this reflection, rather than just delegate straight to the source_reflection, because the source_reflection may be polymorphic. We still need to respect the source_reflection’s :primary_key option, though.

Show source
Register or log in to add new notes.