Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 605 Bytes

CHANGELOG.textile

File metadata and controls

23 lines (12 loc) · 605 Bytes

0.3.0

Separated scope chaining from invokation of paginate. This allows you to invoke further methods on the chained scope such as:

Bill.chain_scopes(params, per_page).sum("billing_positions.amount")

So

Bill.atq_paginate(params, per_page).paginate

is now defined as:

chain_scopes(:page => params[:page], :per_page => per_page).paginate(:page => params[:page], :per_page => per_page)

0.2.1

  • Now supports params[:order] passed to the corresponding named_scope

0.2.0

  • named_scope “order” to be able to order records like this:
MyClass.scoped_by_attr.order("id DESC")