diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-01-23 10:57:05 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-03-05 14:00:41 +0100 |
commit | 4b7a33e1423c207b25da7e34d8ea45c71ba12298 (patch) | |
tree | 92b26475a696f6915f83dbcc03a0a9cfa45714d2 /activerecord/CHANGELOG.md | |
parent | ee444697073b123bbf0e36511b581f7df7419636 (diff) | |
download | rails-4b7a33e1423c207b25da7e34d8ea45c71ba12298.tar.gz rails-4b7a33e1423c207b25da7e34d8ea45c71ba12298.tar.bz2 rails-4b7a33e1423c207b25da7e34d8ea45c71ba12298.zip |
assigning '0.0' to a nullable numeric column does not make it dirty
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index f08049a443..97616ffc58 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,17 @@ ## Rails 4.0.0 (unreleased) ## +* Assigning "0.0" to a nullable numeric column does not make it dirty. + Fix #9034. + + Example: + + product = Product.create price: 0.0 + product.price = '0.0' + product.changed? # => false (this used to return true) + product.changes # => {} (this used to return { price: [0.0, 0.0] }) + + *Yves Senn* + * Added functionality to unscope relations in a relations chain. For instance, if you are passed in a chain of relations as follows: |