method

foreign_key_present?

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::HasManyAssociation
foreign_key_present?() private

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/associations/has_many_association.rb, line 129
        def foreign_key_present?
          if reflection.klass.primary_key
            owner.attribute_present?(reflection.association_primary_key)
          else
            false
          end
        end
Register or log in to add new notes.