diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2013-07-20 17:23:45 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2013-08-12 02:37:39 -0700 |
commit | d35e900c0046126d901ae9a78ce33e28f6c97644 (patch) | |
tree | 594624916c6c6ca9a73abcbafd7ff50442ed7cad /activerecord/test/fixtures/string_key_objects.yml | |
parent | 018697dece967f3f2861a085e747ba14f06c507c (diff) | |
download | rails-d35e900c0046126d901ae9a78ce33e28f6c97644.tar.gz rails-d35e900c0046126d901ae9a78ce33e28f6c97644.tar.bz2 rails-d35e900c0046126d901ae9a78ce33e28f6c97644.zip |
Restore the use of `#add_to_target` for nested attribute updates on existing records, and don't bother updating the association if the update is going to be rejected anyway.
This requires adding a `skip_callbacks` argument to `#add_to_target`
so that we don't call the callbacks multiple times in this case,
which is functionally an application of existing association data,
rather than an addition of a new record to the association.
Diffstat (limited to 'activerecord/test/fixtures/string_key_objects.yml')
0 files changed, 0 insertions, 0 deletions