• S
    Don't save through records twice · 068f092c
    Sean Griffin 提交于
    If the through record gets created in an `after_create` hook that is
    defined before the association is defined (therefore after its
    `after_create` hook) get saved twice. This ensures that the through
    records are created only once, regardless of the order of the hooks.
    068f092c
autosave_association.rb 16.6 KB