diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-01-31 11:17:02 -0800 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-01-31 11:17:02 -0800 |
commit | 75de1ce131cd39f68dbe6b68eecf2617a720a8e4 (patch) | |
tree | 93f0001a3363a1367b4412457039f3848bd57fad /activerecord/CHANGELOG.md | |
parent | d6e41f364a73fb0378dc29d63c15ef7c18b8e18e (diff) | |
parent | 8270e4a8ce8337fca98030953922e5992b06a3dd (diff) | |
download | rails-75de1ce131cd39f68dbe6b68eecf2617a720a8e4.tar.gz rails-75de1ce131cd39f68dbe6b68eecf2617a720a8e4.tar.bz2 rails-75de1ce131cd39f68dbe6b68eecf2617a720a8e4.zip |
Merge pull request #4805 from xuanxu/none_and_null_object_pattern
Added `none` query method to return zero records.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index e9e97f5d62..69cf1193b6 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,18 @@ ## Rails 4.0.0 (unreleased) ## +* Implemented ActiveRecord::Relation#none method + + The `none` method returns a chainable relation with zero records + (an instance of the NullRelation class). + + Any subsequent condition chained to the returned relation will continue + generating an empty relation and will not fire any query to the database. + + *Juanjo Bazán* + +* Added the `ActiveRecord::NullRelation` class implementing the null + object pattern for the Relation class. *Juanjo Bazán* + * Added deprecation for the `:dependent => :restrict` association option. Please note: |