aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-14 16:46:04 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-14 16:46:04 -0700
commitb67990cf342fb1d8f9ecab532db7e5b884981d7d (patch)
treed64486fb5d72094d797bf51342dc4d0da9dc71cc /activerecord/lib
parent99b6cf538145fb34c08f81a6fc495e7fbb0510ae (diff)
downloadrails-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')
0 files changed, 0 insertions, 0 deletions