Sha256: 6eedd236bd5f4a1e45be571bdcf9de8d5868b50890687594688de4c160d1a4b7
Contents?: true
Size: 255 Bytes
Versions: 30
Compression:
Stored size: 255 Bytes
Contents
module ActiveZuora class DecimalField < Field def type_cast(value) return value if value.nil? || value.is_a?(BigDecimal) return default if value.blank? return value.to_d if value.respond_to?(:to_d) default end end end
Version data entries
30 entries across 30 versions & 1 rubygems