lib/koine/attributes/adapter/array_of.rb in koine-attributes-0.2.3 vs lib/koine/attributes/adapter/array_of.rb in koine-attributes-0.3.0
- old
+ new
@@ -5,10 +5,12 @@
def initialize(adapter)
@adapter = adapter
with_default_value([])
end
- def coerce(collectionOfValues)
+ private
+
+ def coerce_not_nil(collectionOfValues)
secure do
collectionOfValues.map { |value| @adapter.coerce(value) }
end
end
end