Sha256: cb8feb41d5d6cb68b5e6b5a8de35e340483c7afb67a71603dbfcf293ab76e588
Contents?: true
Size: 252 Bytes
Versions: 1
Compression:
Stored size: 252 Bytes
Contents
require 'active_record/type' class FionaDateTime < ActiveRecord::Type::Time def type :fiona_datetime end def serialize(value) value.to_iso if value end def deserialize(value) Time.from_iso(value).in_time_zone if value end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
infopark_fiona_connector-7.0.1.5.2.3.rc4 | lib/rails_connector/fiona_datetime.rb |