lib/koine/attributes/adapter/time.rb in koine-attributes-1.0.0 vs lib/koine/attributes/adapter/time.rb in koine-attributes-1.1.0

- old
+ new

@@ -5,12 +5,14 @@ module Adapter class Time < Base private def coerce_not_nil(value) - secure do - next value if value.is_a?(::Time) - ::Time.parse(value) + wrap_errors do + secure do + next value if value.is_a?(::Time) + ::Time.parse(value) + end end end end end end