• R
    Fix callbacks on has_many :through associations (#33249) · 2e3bba3e
    Ryan Kerr 提交于
    When adding a child record via a has_many :through association,
    build_through_record would previously build the join record, and then
    assign the child record and source_type option to it.  Because the
    before_add and after_add callbacks are called as part of build, however,
    this caused the callbacks to receive incomplete records, specifically
    without the other end of the has_many :through association.  Collecting
    all attributes before building the join record ensures the callbacks
    receive the fully constructed record.
    2e3bba3e
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 23.7 KB