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/lib/active_record.rb | |
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/lib/active_record.rb')
-rw-r--r-- | activerecord/lib/active_record.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record.rb b/activerecord/lib/active_record.rb index 78e958442f..73c8a06ab7 100644 --- a/activerecord/lib/active_record.rb +++ b/activerecord/lib/active_record.rb @@ -43,6 +43,7 @@ module ActiveRecord autoload :AutosaveAssociation autoload :Relation + autoload :NullRelation autoload_under 'relation' do autoload :QueryMethods |