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

Improve support for non Active Record objects on `validates_associated` #22224

Merged
merged 1 commit into from Nov 8, 2015

Conversation

Projects
None yet
2 participants
@kassio
Contributor

kassio commented Nov 8, 2015

Skipping marked_for_destruction? when the associated object does not responds
to it make easier to validate virtual associations built on top of Active Model
objects and/or serialized objects that implement a valid? instance method.

Improve support for non Active Record objects on `validates_associated`
Skipping `marked_for_destruction?` when the associated object does not responds
to it make easier to validate virtual associations built on top of Active Model
objects and/or serialized objects that implement a `valid?` instance method.

rafaelfranca added a commit that referenced this pull request Nov 8, 2015

Merge pull request #22224 from kassio/master
Improve support for non Active Record objects on `validates_associated`

@rafaelfranca rafaelfranca merged commit 54c87a1 into rails:master Nov 8, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment