lib/virtus/attribute/nullify_blank.rb in tracker_api-1.7.1 vs lib/virtus/attribute/nullify_blank.rb in tracker_api-1.8.0
- old
+ new
@@ -12,10 +12,10 @@
output = super
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
end
end