Flowdock
method

association_primary_key

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection::AssociationReflection
association_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 226
      def association_primary_key
        @association_primary_key ||=
          options[:primary_key] ||
          !options[:polymorphic] && klass.primary_key ||
          'id'
      end
Register or log in to add new notes.