• 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
has_many_through_associations_test.rb 37.7 KB