will_paginate 3.1.0
-
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