lib/koine/attributes/adapter/time.rb in koine-attributes-0.2.3 vs lib/koine/attributes/adapter/time.rb in koine-attributes-0.3.0
- old
+ new
@@ -2,10 +2,12 @@
module Koine
module Attributes
module Adapter
class Time < Base
- def coerce(value)
+ private
+
+ def coerce_not_nil(value)
secure do
next value if value.is_a?(::Time)
::Time.parse(value)
end
end