Skip to content
Browse files

Merge pull request #13538 from robin850/patch-14

Add a missing changelog entry for #13534 [ci skip]
  • Loading branch information...
2 parents 3d865c1 + ec4b44b commit d2aa3324a907d58bc01ab8e5792958499df5dd5c @senny senny committed Dec 30, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 activerecord/CHANGELOG.md
View
12 activerecord/CHANGELOG.md
@@ -1,3 +1,15 @@
+* An `ArgumentError` is now raised on a call to `Relation#where.not(nil)`.
+
+ User.where.not(nil)
+
+ # Before
+ # => 'SELECT `users`.* FROM `users` WHERE (NOT (NULL))'
+
+ # After
+ # => ArgumentError, 'Invalid argument for .where.not(), got nil.'
+
+ *Kuldeep Aggarwal*
+
* Deprecated use of string argument as a configuration lookup in `ActiveRecord::Base.establish_connection`. Instead, a symbol must be given.
*José Valim*

0 comments on commit d2aa332

Please sign in to comment.
Something went wrong with that request. Please try again.