CompanyBook / massive_record

HBase ruby client
131 stars 39 forks source link

Is this correct code? #91

Closed comcava closed 11 years ago

comcava commented 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

vincentp commented 11 years ago

yes it is, we are casting the code here, so we assign an updated value