Skip to content

will_paginate 3.1.0

Compare
Choose a tag to compare
@mislav mislav released this 03 Jan 23:53
· 168 commits to master since this release
  • Rails 5.0 support

  • Drop support for old Active Record finder params to paginate():

    # now unsupported:
    User.paginate(:page => 1, :order => 'created_at DESC', :conditions => ...)
    
    # convert to Arel syntax instead:
    User.order('created_at DESC').where(...).paginate(:page => 1)
    # or, even better:
    User.order('created_at DESC').where(...).page(1)
  • Add support for pagination with Mongoid


will_paginate is compatible with:

  • Ruby 1.8.7, 1.9.3, 2.0, 2.1, 2.2, 2.3
  • Rails 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0
  • Active Record, DataMapper, Sequel, Mongoid
  • Database adapters: mysql, mysql2, postgres, sqlite3