Sha256: 4f7a1d697ba7965151ee5d1b5d5b70e760d5a16650babf9bcced5cda2309367a
Contents?: true
Size: 374 Bytes
Versions: 17
Compression:
Stored size: 374 Bytes
Contents
require "time" require "date" require "json" class Time def to_json(*args) iso8601(6).to_json end end class Date def to_json(*args) iso8601.to_json end end class DateTime def to_json(*args) iso8601(6).to_json end end if defined?(ActiveSupport) class ActiveSupport::TimeWithZone def to_json(*args) iso8601(6).to_json end end end
Version data entries
17 entries across 17 versions & 1 rubygems