This project is archived and is in readonly mode.
ActiveRecord changes incorrect reports integer column changed when passed a string.
-
Kenny Carruthers
Note, that after a bit more investigating, this actually only appears to happen when the value of the column is 0.
So the above example should be re-written as follows:
m = match.first m.score # 0 m.score = 0 m.score_changed? # false m.score = "0" m.score_changed? # true m.score # 0Sorry for the mixup.
Kenny
-
Frederick Cheung
- State changed from new to duplicate
This is the same issue as #1530 ActiveRecord::Dirty incorrect behaviour which was fixed (grab that patch or update to 2.3.2)