From 4033c50000768e6259efc522c584912c55030d54 Mon Sep 17 00:00:00 2001 From: John J Wang Date: Mon, 11 Feb 2013 13:56:26 -0500 Subject: Raise an error when query methods have blank arguments, and when blank arguments are meaningless. --- activerecord/CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 5c0dfa73b6..3f238f69f0 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,16 @@ ## Rails 4.0.0 (unreleased) ## +* ActiveRecord now raises an error when blank arguments are passed to query + methods for which blank arguments do not make sense. This also occurs for + nil-like objects in arguments. + + Example: + + Post.limit() # => raises error + Post.include([]) # => raises error + + *John Wang* + * Simplified type casting code for timezone aware attributes to use the `in_time_zone` method if it is available. This introduces a subtle change of behavior when using `Date` instances as they are directly converted to -- cgit v1.2.3