diff options
author | John J Wang <wangjohn@W20-575-21.MIT.EDU> | 2013-02-11 13:56:26 -0500 |
---|---|---|
committer | John J Wang <wangjohn@ringworld.MIT.EDU> | 2013-02-19 11:15:15 -0500 |
commit | 4033c50000768e6259efc522c584912c55030d54 (patch) | |
tree | 8a5f7572d30d9c436cbd0b3df901e5682064f533 /activerecord/CHANGELOG.md | |
parent | 00147c8762124795ab69ccb56473b449f9e3362e (diff) | |
download | rails-4033c50000768e6259efc522c584912c55030d54.tar.gz rails-4033c50000768e6259efc522c584912c55030d54.tar.bz2 rails-4033c50000768e6259efc522c584912c55030d54.zip |
Raise an error when query methods have blank arguments, and when blank arguments are meaningless.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 11 |
1 files changed, 11 insertions, 0 deletions
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 |