Skip to content

fix: return false instead of nil for reference types, when value is false-y#26

Open
mzikherman wants to merge 1 commit intomongoid:masterfrom
mzikherman:return-false-instead-of-nil-for-ref-types
Open

fix: return false instead of nil for reference types, when value is false-y#26
mzikherman wants to merge 1 commit intomongoid:masterfrom
mzikherman:return-false-instead-of-nil-for-ref-types

Conversation

@mzikherman
Copy link
Copy Markdown

@mzikherman mzikherman commented Apr 18, 2023

Noticing an odd bug where if a field has type: :reference and the definition is something that returns false, the value of nil gets returned instead of the correct false.

👋 @dblock

@dblock
Copy link
Copy Markdown
Collaborator

dblock commented Apr 19, 2023

Hello there! I think we need to do #27 before we start merging other changes. Maybe add Mongoid 8 support? Care to do that?

@mzikherman
Copy link
Copy Markdown
Author

Yup, I can do that. I was noticing the lack of CI yesterday, I ran the spec suite locally but just with the specific version of Ruby/Mongoid I happened to be using and was curious to see the matrix run w/ multiple.

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