lib/yaks/format/halo.rb in yaks-0.8.0.alpha vs lib/yaks/format/halo.rb in yaks-0.8.0.beta1
- old
+ new
@@ -34,10 +34,10 @@
}
else
field.to_h_compact.each_with_object({}) do |(attr,value), hsh|
if attr == :options # <option>s of a <select>
if !value.empty?
- hsh[:options] = value.map(&:to_h)
+ hsh[:options] = value.map(&:to_h_compact)
end
else
hsh[attr] = value
end
end