rails--rails/activerecord/lib
Rafael Mendonça França 4028bed812 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
2012-08-02 14:13:45 -03:00
..
active_record Do not consider the numeric attribute as changed if the old value is 2012-08-02 14:13:45 -03:00
rails/generators Add fkey attributes to `join_table` migration generator 2012-07-19 00:24:21 +04:00
active_record.rb removes the AR session store from eager loaded code [fixes #7160] 2012-07-29 00:23:48 +02:00