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

Fixes/duplicate nil field #23

Open
wants to merge 9 commits into
base: edge
Choose a base branch
from
Open

Fixes/duplicate nil field #23

wants to merge 9 commits into from

Conversation

brenes
Copy link
Member

@brenes brenes commented Oct 5, 2016

This should solve the issue with trying to duplicate (with :dup) an ActiveRecord / ActiveResource field that is nil

…even when empty

We also test that when you duplicate an empty multiple field you get another empty multiple field
This way we avoid connectionsto an unexisting API
…ecord

Beware! In this commit I overwrite behaviour introduced by @enoliglesias in d8214e6 relying more in the super behaviour and only rewriting the :link case when there's something to link.

I think I got the idea of the original code and kept it correctly, and tests are green. But maybe @enoliglesias can review this :)
@brenes
Copy link
Member Author

brenes commented Oct 5, 2016

@Guzmangm you were assigned to this pull request as you knew the original issue.
@enoliglesias you were assigned as my last commit overwrite some code you changed and it would be nice to make sure you see it ok 😄

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.

3 participants