lib/koine/attributes/adapter/time.rb in koine-attributes-1.2.3 vs lib/koine/attributes/adapter/time.rb in koine-attributes-1.2.4

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'time' module Koine module Attributes module Adapter @@ -8,9 +10,10 @@ def coerce_not_nil(value) wrap_errors do secure do next value if value.is_a?(::Time) + ::Time.parse(value) end end end end