lib/koine/attributes/adapter/array_of.rb in koine-attributes-0.2.1 vs lib/koine/attributes/adapter/array_of.rb in koine-attributes-0.2.2

- old
+ new

@@ -2,9 +2,10 @@ module Attributes module Adapter class ArrayOf < Base def initialize(adapter) @adapter = adapter + with_default_value([]) end def coerce(collectionOfValues) secure do collectionOfValues.map { |value| @adapter.coerce(value) }