Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2466 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Add limit and offset to new scope_constraints

Reported by: duane.johnson@gmail.com Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version: 0.13.1
Severity: normal Keywords:
Cc:

Description

This patch adds :limit and :offset to the new scope_constraints within ActiveRecord::Base. This will be helpful in re-building the paginate method (or creating a plugin to do the job).

Attachments

add_limit_offset_to_constraints.patch (2.3 kB) - added by duane.johnson@gmail.com on 10/14/05 01:55:30.
Adds :limit and :offset options to scope_constraints, plus tests for #constrain method

Change History

10/14/05 01:55:30 changed by duane.johnson@gmail.com

  • attachment add_limit_offset_to_constraints.patch added.

Adds :limit and :offset options to scope_constraints, plus tests for #constrain method

10/26/05 13:20:06 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [2748]) Added :offset and :limit to the kinds of options that Base.constrain can use (closes #2466) [duane.johnson@gmail.com]