New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate save(validate:)
option for :has_many
associations on au…
#43525
base: main
Are you sure you want to change the base?
Conversation
d9c6010
to
95407ef
Compare
Did you confirm this passes all the tests here ? |
@ghiculescu Yes all tests in #43400 (comment) passes with this change. In this PR I've only added a test for when |
I think it's worth adding at least one more test, because |
299d8ab
to
9f8e276
Compare
…tosave. `save(validate:)` option is propagated to associated records during `autosave` when `autosave` option is `nil`. Affects only `:has_many` associations. Fixes rails#43400
@ghiculescu I've added tests for all the 3 possible values of Can you please do another check? Thanks! |
Thanks. This looks great to me. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
ping |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
ping |
Summary
save(validate:)
option is propagated to associated records duringautosave
whenautosave
option isnil
.Affects only
:has_many
associations.Fixes #43400