Sha256: 140e8e6481ec29dae6df2b1ff66e0cac4aead4eab44a02f1e87076d3decb2dc0
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 Bytes
Contents
module ActiveData module Model module Extensions module Integer extend ActiveSupport::Concern module ClassMethods def active_data_type_cast value Float(value).to_i rescue nil if value end end end end end end Integer.send :include, ActiveData::Model::Extensions::Integer
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_data-0.3.0 | lib/active_data/model/extensions/integer.rb |
active_data-0.2.0 | lib/active_data/model/extensions/integer.rb |