diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-09 00:46:18 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-09 01:04:59 +0900 |
commit | 5f9e05048d409b9c3fb35a3620fe361fb03dd4e1 (patch) | |
tree | 88de37f3854e3f3f03165dc62eae475377cda2f9 /activerecord/lib/active_record/autosave_association.rb | |
parent | 216b8aa40f694fddb51c22f5dfc150f6ca578598 (diff) | |
download | rails-5f9e05048d409b9c3fb35a3620fe361fb03dd4e1.tar.gz rails-5f9e05048d409b9c3fb35a3620fe361fb03dd4e1.tar.bz2 rails-5f9e05048d409b9c3fb35a3620fe361fb03dd4e1.zip |
Refactor to just use `Association#target=` in `associate_records_to_owner`
`Association#target=` invokes `loaded!`, so we no longer need to call
the `loaded!` explicitly.
Since Preloader is private API, we don't guarantee that it behaves like
older version as long as using Preloader directly. But this refactoring
fortunately also fix the Preloader compatibility issue #35195.
Closes #35195.
Diffstat (limited to 'activerecord/lib/active_record/autosave_association.rb')
0 files changed, 0 insertions, 0 deletions