Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 989 Bytes

CHANGELOG.textile

File metadata and controls

41 lines (22 loc) · 989 Bytes

0.5.0

  • changed dependency from will_paginate to kaminari

0.4.7

  • handle params to paginate as Hash with indifferent access
  • Decide through table definition if a given paginable param is a scope or a attribute to query

0.4.1

  • Symbolize params to build pagination
  • added options hash which will be forwarded to will_paginate

0.4.0

  • Rails 3 compatibility.

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")