lib/active_object/hash.rb in active_object-5.1.0 vs lib/active_object/hash.rb in active_object-5.1.1

- old
+ new

@@ -105,10 +105,12 @@ def nillify dup.nillify! end def nillify! - each { |key, val| self[key] = nil if !val.nil? && (val.try(:blank?) || val.try(:to_s).blank?) } + each do |key, val| + self[key] = nil if !val.nil? && (val.try(:blank?) || val.try(:to_s).blank?) + end end def only(*keys) dup.only!(*keys) end