Skip to content
  • Sean Griffin's avatar
    50fa3667
    Always assume strings with non-numeric characters change numeric types · 50fa3667
    Sean Griffin authored
    We previously only did this if the old value was zero, to make sure
    numericality validations run and failed if the user gave 'wibble' as the
    value, which would be type cast to 0. However, numericality validations
    will fail if there are any non-numeric characters in the string, so 5 ->
    '5wibble' should also be marked as changed.
    50fa3667
    Always assume strings with non-numeric characters change numeric types
    Sean Griffin authored
    We previously only did this if the old value was zero, to make sure
    numericality validations run and failed if the user gave 'wibble' as the
    value, which would be type cast to 0. However, numericality validations
    will fail if there are any non-numeric characters in the string, so 5 ->
    '5wibble' should also be marked as changed.
Loading