-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Relations validate: true only runs on create #24532
Comments
I don't think it's a bug. From what I see in the code,
rails/activerecord/lib/active_record/associations/has_many_through_association.rb Line 38 in 52ce6ec
If you want to ensure all associated records are revalidated on every update, you should use |
My personal suggestion: update the docs to reflect that |
Even validated_associated doesn't work. |
@vipulnsward works for the test cases I've written. Is there a case that fails? |
I'd be fine with changing the docs to clarify this. Even if this was considered a bug, it would be extremely difficult to change. Since |
…fusion with :validate option. Caused by rails#24532.
Steps to reproduce
Expected behavior
Actual behavior
items are not validated on update
System configuration
Rails version: 5.0.0.beta3
Ruby version: 2.3.0
The text was updated successfully, but these errors were encountered: