aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2013-12-18 00:02:48 -0800
committerGodfrey Chan <godfreykfc@gmail.com>2013-12-18 00:02:48 -0800
commit2c9cb495f379856704b3f23da71fb60bc5a332d5 (patch)
treeeb4ca95f2b85129cbc3448d7a6d71b8fc4817487 /activerecord
parent092e113df59fe20ec95b0af3ddbe69c524f6bbba (diff)
parentdb765ec741911ca8d9dfc9403f532d239301e435 (diff)
downloadrails-2c9cb495f379856704b3f23da71fb60bc5a332d5.tar.gz
rails-2c9cb495f379856704b3f23da71fb60bc5a332d5.tar.bz2
rails-2c9cb495f379856704b3f23da71fb60bc5a332d5.zip
Merge pull request #13340 from akshay-vishnoi/typo
#none documentation updated [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 4f4961d273..e7b8809fe0 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -631,12 +631,11 @@ module ActiveRecord
self
end
- # Returns a chainable relation with zero records, specifically an
- # instance of the <tt>ActiveRecord::NullRelation</tt> class.
+ # Returns a chainable relation with zero records.
#
- # 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 querying the database.
+ # The returned relation implements the Null Object pattern. It is an
+ # object with defined null behavior and always returns an empty array of
+ # records without querying 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.