Skip to content
  • Ryuta Kamizono's avatar
    3983b4d0
    Fix inconsistent touching behavior between assigning and unassigning · 3983b4d0
    Ryuta Kamizono authored
    On belongs_to with `touch: true` association, unassigned object is
    caused touching, but assigned object is not touched.
    
    And also, if primary key is customized, it will touch against the wrong
    target looked up by the customized key as primary key.
    
    This change ensures correctly touching consistently between assigning
    and unassigning.
    3983b4d0
    Fix inconsistent touching behavior between assigning and unassigning
    Ryuta Kamizono authored
    On belongs_to with `touch: true` association, unassigned object is
    caused touching, but assigned object is not touched.
    
    And also, if primary key is customized, it will touch against the wrong
    target looked up by the customized key as primary key.
    
    This change ensures correctly touching consistently between assigning
    and unassigning.
Loading