Closed comcava closed 11 years ago
Find this, are you sure about '=' not '==' ?
cast_numbers_on_write.rb
if value.present? if field = attributes_schema[attr_name] case field.type when :integer value = value.to_i when :float value = value.to_f end end end
yes it is, we are casting the code here, so we assign an updated value
Find this, are you sure about '=' not '==' ?
cast_numbers_on_write.rb
if value.present? if field = attributes_schema[attr_name] case field.type when :integer value = value.to_i when :float value = value.to_f end end end