method

through_reflection_primary_key

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection::ThroughReflection
through_reflection_primary_key() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/reflection.rb, line 292
      def through_reflection_primary_key
        through_reflection.belongs_to? ? through_reflection.klass.primary_key : through_reflection.primary_key_name
      end
Register or log in to add new notes.