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

HasOne nil object should return [] under embedded key. #527

Closed
wants to merge 1 commit into from
Closed

HasOne nil object should return [] under embedded key. #527

wants to merge 1 commit into from

Conversation

kenips
Copy link
Contributor

@kenips kenips commented Mar 8, 2014

Ensure that @wrap_in_array is always respected when set to true even when associated object is nil.

Ensure that @wrap_in_array is always respected when set to true even
when associated object is nil.
@xymbol xymbol self-assigned this Mar 9, 2014
@xymbol
Copy link
Contributor

xymbol commented Mar 10, 2014

It's a valid case indeed. Thanks for the contribution! Just changed a line to avoid the combination of a ternary operator and a single-line conditional. Tests pass, please check against any edge cases in you app.

@xymbol xymbol closed this Mar 10, 2014
@kenips
Copy link
Contributor Author

kenips commented Mar 10, 2014

thanks!

@kenips kenips deleted the bug/has_one_embed_in_root_nil branch March 10, 2014 20:14
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

2 participants