diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2019-02-13 12:25:43 +0200 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2019-02-20 13:48:51 +0200 |
commit | bd4eff2f99ffa5868574c497bc63f320cbda3083 (patch) | |
tree | b21d4bdea255230b35ebc142472aaf3120dfed33 /activemodel/test/models/visitor.rb | |
parent | 4cb1438b57067d637c79d49d0662c43b5b4e64c2 (diff) | |
download | rails-bd4eff2f99ffa5868574c497bc63f320cbda3083.tar.gz rails-bd4eff2f99ffa5868574c497bc63f320cbda3083.tar.bz2 rails-bd4eff2f99ffa5868574c497bc63f320cbda3083.zip |
Fix reset of the source association when through association is loaded
The special case happens when through association has a custom scope
that is applied to the source association when loading.
In this case, the soucre association would need to be reset after
main association is loaded. See tests.
The special case exists when a through association has
Diffstat (limited to 'activemodel/test/models/visitor.rb')
0 files changed, 0 insertions, 0 deletions