Flowdock
method

foreign_key_present?

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: ForeignAssociation
foreign_key_present?() 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/associations/foreign_association.rb, line 3
    def foreign_key_present?
      if reflection.klass.primary_key
        owner.attribute_present?(reflection.active_record_primary_key)
      else
        false
      end
    end
Register or log in to add new notes.