method

_record_changed?

rails latest stable - Class: ActiveRecord::AutosaveAssociation
_record_changed?(reflection, record, key)
private

If the record is new or it has changed, returns true.