Skip to content
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

Do not validate associated records marked for destruction #3854

Merged

Conversation

exviva
Copy link
Contributor

@exviva exviva commented Dec 4, 2011

The main reason for this change is to fix a bug where
validates_associated would prevent accepts_nested_attributes_for
with allow_destroy: true from destroying invalid associated records.

The main reason for this change is to fix a bug where
`validates_associated` would prevent `accepts_nested_attributes_for`
with `allow_destroy: true` from destroying invalid associated records.
josevalim added a commit that referenced this pull request Dec 4, 2011
…destruction

Do not validate associated records marked for destruction
@josevalim josevalim merged commit cf6ccf0 into rails:master Dec 4, 2011
@metaskills
Copy link
Contributor

Was just thinking about this. I think I may add a patch where the objects has to be (valid? and not destroyed?) too since a valid in memory object is not really valid as well.

@exviva exviva deleted the validates_associated_marked_for_destruction branch March 10, 2016 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants