= private = protected
add_limit!(sql, options, scope = :auto)
The optional scope argument is for the current :find scope.
# File activerecord/lib/active_record/base.rb, line 1761 def add_limit!(sql, options, scope = :auto) scope = scope(:find) if :auto == scope if scope options[:limit] ||= scope[:limit] options[:offset] ||= scope[:offset] end connection.add_limit_offset!(sql, options) end