diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-14 16:46:04 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-14 16:46:04 -0700 |
commit | b67990cf342fb1d8f9ecab532db7e5b884981d7d (patch) | |
tree | d64486fb5d72094d797bf51342dc4d0da9dc71cc /activerecord/lib/active_record | |
parent | 99b6cf538145fb34c08f81a6fc495e7fbb0510ae (diff) | |
download | rails-b67990cf342fb1d8f9ecab532db7e5b884981d7d.tar.gz rails-b67990cf342fb1d8f9ecab532db7e5b884981d7d.tar.bz2 rails-b67990cf342fb1d8f9ecab532db7e5b884981d7d.zip |
Add tests with an explanation of why we're using `_before_type_cast`
If you entered incorrect input into a form (particularly with a
numericality validation), we should not replace what you typed in with
`0`, since clicking submit a second time would essentially be the same
as erroneously accepting the junk input as 0.
Diffstat (limited to 'activerecord/lib/active_record')
0 files changed, 0 insertions, 0 deletions