Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/virtus/attribute/nullify_blank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def coerce(input)
if !value_coerced?(output) && input.blank?
nil
# Added to nullify anything that is blank not just strings.
elsif output.blank?
elsif output.blank? && output != false
nil
else
output
Expand Down