From ec4b44b1a4052fea1404cf27c8a30f613426e2d8 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Mon, 30 Dec 2013 11:40:21 +0100 Subject: Add a missing changelog entry for #13534 [ci skip] --- activerecord/CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 6b17d6b265..fd99a6bc59 100644 --- a/activerecord/CHANGELOG.md +++ b/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* -- cgit v1.2.3