diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-18 19:06:54 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-18 19:06:54 +0000 |
commit | 39c64fff8ab1bba9057201dd2580f55e196c302a (patch) | |
tree | a899ce7d6e9015699ad02ff6612236d5f04f1582 | |
parent | 249d55e684ba7808807fe270cef75955e5bc4e69 (diff) | |
download | rails-39c64fff8ab1bba9057201dd2580f55e196c302a.tar.gz rails-39c64fff8ab1bba9057201dd2580f55e196c302a.tar.bz2 rails-39c64fff8ab1bba9057201dd2580f55e196c302a.zip |
Clarify :offset docs. Closes #3733.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 365af0a93e..94b3ac1057 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -374,7 +374,7 @@ module ActiveRecord #:nodoc: # * <tt>:order</tt>: An SQL fragment like "created_at DESC, name". # * <tt>:group</tt>: An attribute name by which the result should be grouped. Uses the GROUP BY SQL-clause. # * <tt>:limit</tt>: An integer determining the limit on the number of rows that should be returned. - # * <tt>:offset</tt>: An integer determining the offset from where the rows should be fetched. So at 5, it would skip the first 4 rows. + # * <tt>:offset</tt>: An integer determining the offset from where the rows should be fetched. So at 5, it would skip rows 0 through 4. # * <tt>:joins</tt>: An SQL fragment for additional joins like "LEFT JOIN comments ON comments.post_id = id". (Rarely needed). # The records will be returned read-only since they will have attributes that do not correspond to the table's columns. # Pass :readonly => false to override. |