Skip to content

Commit

Permalink
Improve documentation for AbstractAdapter#add_limit_offset!
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Sep 18, 2008
1 parent 132185b commit 644dd0b
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -98,8 +98,14 @@ def add_limit!(sql, options)
add_limit_offset!(sql, options) if options
end

# Appends +LIMIT+ and +OFFSET+ options to an SQL statement.
# Appends +LIMIT+ and +OFFSET+ options to an SQL statement, or some SQL
# fragment that has the same semantics as LIMIT and OFFSET.
#
# +options+ must be a Hash which contains a +:limit+ option (required)
# and an +:offset+ option (optional).
#
# This method *modifies* the +sql+ parameter.
#
# ===== Examples
# add_limit_offset!('SELECT * FROM suppliers', {:limit => 10, :offset => 50})
# generates
Expand Down

0 comments on commit 644dd0b

Please sign in to comment.