diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-02 14:01:44 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-02 14:13:45 -0300 |
commit | 4028bed8128f3d4eac2a55e85a504f1143944eae (patch) | |
tree | 53e130f70309acefc4da7fb60f0a25bab35e796d /railties | |
parent | b33e7ba140277ade581ed3506144111d29448c9f (diff) | |
download | rails-4028bed8128f3d4eac2a55e85a504f1143944eae.tar.gz rails-4028bed8128f3d4eac2a55e85a504f1143944eae.tar.bz2 rails-4028bed8128f3d4eac2a55e85a504f1143944eae.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
Conflicts:
activerecord/CHANGELOG.md
Diffstat (limited to 'railties')
0 files changed, 0 insertions, 0 deletions