class ActiveZuora::DecimalField
Public Instance Methods
type_cast(value)
click to toggle source
# File lib/active_zuora/fields/decimal_field.rb, line 4 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