Sha256: ec5a3a2dbc2dd9871d2f2a031bf056483ebb2cf1a167ad2ea143cd252f77e0e0
Contents?: true
Size: 244 Bytes
Versions: 11
Compression:
Stored size: 244 Bytes
Contents
require "active_record/type" class FionaDateTime < ActiveRecord::Type::Time def type :fiona_datetime end def serialize(value) value&.to_iso end def deserialize(value) Time.from_iso(value).in_time_zone if value end end
Version data entries
11 entries across 11 versions & 1 rubygems