lib/virtus/attribute_set.rb in virtus-1.0.0.beta8 vs lib/virtus/attribute_set.rb in virtus-1.0.0.rc1

- old
+ new

@@ -180,23 +180,12 @@ # @return [self] # # @api private def set_defaults(object, filter = method(:skip_default?)) each do |attribute| - if filter.call(object, attribute) - next - end - set_default(object, attribute) + next if filter.call(object, attribute) + attribute.set_default_value(object) end - end - - # Set default attribute - # - # @return [default value] - # - # @api private - def set_default(object, attribute) - attribute.set_default_value(object) end # Coerce attributes received to a hash # # @return [Hash]