lib/salesforce/column.rb in activeforce-1.10.5 vs lib/salesforce/column.rb in activeforce-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
module Salesforce
class Column
attr_accessor :name, :original_name, :createable, :updateable, :type
-
+
SUPPORTED_DATE_RANGE = Date.parse("1700-01-01")..Date.parse("4000-12-31")
SUPPORTED_TIME_RANGE = Time.parse("1902-01-01 00:00:00 UTC")..Time.parse("2037-12-31 00:00:00 UTC")
def initialize(field)
self.original_name = field["name"]
@@ -98,10 +98,10 @@
rescue
value if value.is_a?(Time)
end
when :double
begin
- value.to_s.to_d
+ BigDecimal(value.to_s)
rescue
value if value.is_a?(Numeric)
end
else
value