lib/conglomerate/serializer.rb in conglomerate-0.4.0 vs lib/conglomerate/serializer.rb in conglomerate-0.5.0
- old
+ new
@@ -184,9 +184,11 @@
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