Sha256: bde21acda184b1c8fcff6d42d63865e5200bcf1d086ac950c01e7a7b2653a526
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
# This is a bit crazy, but we need it because the 'json/add/core' adds a really weird serialization of date fields. # It looks like this: {"json_class":"Date","y":2000,"m":1,"d":1,"sg":2299161.0} class ::Date def to_json(*_args) format('"%d-%02d-%02d"', year, month, day) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecraft-extensions-0.2.2 | lib/ecraft/extensions/date.rb |
ecraft-extensions-0.2.1 | lib/ecraft/extensions/date.rb |