diff options
author | Alisdair McDiarmid <alisdair@mcdiarmid.org> | 2012-11-25 10:13:39 +0000 |
---|---|---|
committer | Alisdair McDiarmid <alisdair@mcdiarmid.org> | 2012-11-25 11:24:27 +0000 |
commit | fc4e387d7a478f75cdd4375b6c62e918b4b132b0 (patch) | |
tree | e993fe9626595504f388f4f3d8dd48c17a7faf94 /activerecord/CHANGELOG.md | |
parent | e95b9d6c68b1e0bba3840d18fc0aa94ccf88776d (diff) | |
download | rails-fc4e387d7a478f75cdd4375b6c62e918b4b132b0.tar.gz rails-fc4e387d7a478f75cdd4375b6c62e918b4b132b0.tar.bz2 rails-fc4e387d7a478f75cdd4375b6c62e918b4b132b0.zip |
Don't call will_change! for datetime nil->"".
Setting a nil datetime attribute to a blank string should not cause the
attribute to be dirty.
Fix #8310
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 201eddbcae..66359fb80f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,11 @@ ## Rails 4.0.0 (unreleased) ## +* Fix dirty attribute checks for TimeZoneConversion with nil and blank + datetime attributes. Setting a nil datetime to a blank string should not + result in a change being flagged. Fix #8310 + + *Alisdair McDiarmid* + * Prevent mass assignment to the type column of polymorphic associations when using `build` Fix #8265 |