lib/conglomerate/serializer.rb in conglomerate-0.5.0 vs lib/conglomerate/serializer.rb in conglomerate-0.5.1

- old
+ new

@@ -174,21 +174,23 @@ if type == :array [] elsif type == :object {} else - default_value + if present?(object) && object.send(name) == false + false + else + default_value + end end else object.send(name) end end def blank?(value) if value.is_a?(String) value !~ /[^[:space:]]/ - elsif [true, false].include?(value) - false else value.respond_to?(:empty?) ? value.empty? : !value end end