method

join_pk

rails latest stable - Class: ActiveRecord::Reflection::BelongsToReflection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

join_pk(klass)
private

No documentation available.

# File activerecord/lib/active_record/reflection.rb, line 754
        def join_pk(klass)
          polymorphic? ? association_primary_key(klass) : association_primary_key
        end