Sha256: 46c50abe19e5000bbde69db642411185d08ac9d25baad7558d7d082d2ac81295
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
module ActiveData module Model module Extensions module Time extend ActiveSupport::Concern module ClassMethods def active_data_type_cast value value.to_time rescue nil end end end end end end Time.send :include, ActiveData::Model::Extensions::Time
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_data-0.3.0 | lib/active_data/model/extensions/time.rb |
active_data-0.2.0 | lib/active_data/model/extensions/time.rb |