aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/query_methods.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/relation/query_methods.rb')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 08803552ff..6fa64b39c3 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -213,12 +213,10 @@ module ActiveRecord
self
end
- # Specifies a limit of records.
+ # Specifies a limit for the number of records to retrieve.
#
# User.limit(10) # generated SQL has 'LIMIT 10'
#
- # Replaces any existing previous limit.
- #
# User.limit(10).limit(20) # generated SQL has 'LIMIT 20'
def limit(value)
spawn.limit!(value)
@@ -233,7 +231,7 @@ module ActiveRecord
#
# User.offset(10) # generated SQL has "OFFSET 10"
#
- # Should be used with order.
+ # Should be used with order.
#
# User.offset(10).order("name ASC")
def offset(value)