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