aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-24 11:56:50 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-24 11:56:50 -0300
commit16c7873c44cbced87b153bcbc7ac7ecfe950b53c (patch)
tree931dadff4c789f5b9e1ba0da6bddb8796d1a617c /activerecord/CHANGELOG.md
parente029e0267206c603503db06eb48a0bbc3b2ed609 (diff)
parent926c4b95e49cc65a1d7420392c95d2193b099965 (diff)
downloadrails-16c7873c44cbced87b153bcbc7ac7ecfe950b53c.tar.gz
rails-16c7873c44cbced87b153bcbc7ac7ecfe950b53c.tar.bz2
rails-16c7873c44cbced87b153bcbc7ac7ecfe950b53c.zip
Merge pull request #9860 from wangjohn/update_attributes_throws_error_with_nil
Raising an error when nil is passed to update_attributes. Conflicts: activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 4e966ce5dc..12e224d27a 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,13 @@
+* Calling `update_attributes` will now throw an `ArgumentError` whenever it
+ gets a `nil` argument. More specifically, it will throw an error if the
+ argument that it gets passed does not respond to to `stringify_keys`.
+
+ Example:
+
+ @my_comment.update_attributes(nil) # => raises ArgumentError
+
+ *John Wang*
+
* Deprecate `quoted_locking_column` method, which isn't used anywhere.
*kennyj*