aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-02 14:01:44 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-02 14:11:51 -0300
commit99f622de230e582c372e20f4b72792c0fce0fd4a (patch)
tree11e9b53483059998d333f9ed5534022c7a21bcdc /railties
parent59c4b22c4528e9f97d3eb394f603dc50c3cf41a9 (diff)
downloadrails-99f622de230e582c372e20f4b72792c0fce0fd4a.tar.gz
rails-99f622de230e582c372e20f4b72792c0fce0fd4a.tar.bz2
rails-99f622de230e582c372e20f4b72792c0fce0fd4a.zip
Do not consider the numeric attribute as changed if the old value is
zero and the new value is not a string. Before this commit this was the behavior r = Review.find_by_issue(0) r.issue => 0 r.changes => {} r.issue = 0 => 0 r.changed? => true r.changes => {"issue"=>[0,0]} Fixes #7237
Diffstat (limited to 'railties')
0 files changed, 0 insertions, 0 deletions