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

Don't skip reject_if when _destroy is passed #900

Merged
merged 2 commits into from
Sep 25, 2015
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Sep 25, 2015

Nested attributes was previously skiping the check of the reject_if proc
if the _destroy flag was passed. This was occuring when allow_destroy
was false, so the record was getting updated. Thanks to @ojlyytinen for
finding this bug and the orignal work on PR #879 from which this PR is
inspired.

Nested attributes was previously skiping the check of the reject_if proc
if the _destroy flag was passed. This was occuring when allow_destroy
was false, so the record was getting created. Thanks to @ojlyytinen for
finding this bug and the orignal work on PR #879 from which this PR is
inspired.
mjgiarlo added a commit that referenced this pull request Sep 25, 2015
Don't skip reject_if when _destroy is passed
@mjgiarlo mjgiarlo merged commit 2206c10 into master Sep 25, 2015
@mjgiarlo mjgiarlo deleted the nested_attrs_destroy branch September 25, 2015 18:50
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.

2 participants