Sha256: 37b3d2e67f4c68ef583a993e2697d12e5a662df9acafde2b86959b523b7cd4a1
Contents?: true
Size: 190 Bytes
Versions: 24
Compression:
Stored size: 190 Bytes
Contents
require 'date' module Unit module Types class Date def self.cast(value) return nil if value.nil? ::Date.parse(value).strftime('%F') end end end end
Version data entries
24 entries across 24 versions & 1 rubygems