diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-07-21 21:45:32 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-07-21 21:45:32 +0530 |
commit | 8fe5f01c31c489548f1648b1c3269c2d1cb5e178 (patch) | |
tree | 6ffccb9f5a645726a4333fede4ff4ff4019ef243 /activerecord/lib/active_record/relation | |
parent | c851deff83076b8f73c77818bc04ba8e9f7ec335 (diff) | |
download | rails-8fe5f01c31c489548f1648b1c3269c2d1cb5e178.tar.gz rails-8fe5f01c31c489548f1648b1c3269c2d1cb5e178.tar.bz2 rails-8fe5f01c31c489548f1648b1c3269c2d1cb5e178.zip |
improve NullRelation docs [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 4591c8f41f..9df63d5485 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -435,11 +435,11 @@ module ActiveRecord end # Returns a chainable relation with zero records, specifically an - # instance of the NullRelation class. + # instance of the <tt>ActiveRecord::NullRelation</tt> class. # - # The returned NullRelation inherits from Relation and implements the - # Null Object pattern so it is an object with defined null behavior: - # it always returns an empty array of records and does not query the database. + # The returned <tt>ActiveRecord::NullRelation</tt> inherits from Relation and implements the + # Null Object pattern. It is an object with defined null behavior and always returns an empty + # array of records without quering the database. # # Any subsequent condition chained to the returned relation will continue # generating an empty relation and will not fire any query to the database. |