v1.0.0.beta1
Pre-releaseBreaking Changes:
-
Dropped Ruby 1.9 support
-
Dropped Rails 3.2 support
-
Dropped Rails 4.0 support
-
Removed Sinatra support that has been extracted to kaminari-sinatra gem
-
Removed Mongoid support that has been extracted to kaminari-mongoid gem
-
Removed MongoMapper support that has been extracted to kaminari-mongo_mapper gem
-
Removed DataMapper support that has been extracted to kaminari-data_mapper gem
-
Extracted Grape support to kaminari-grape gem and removed it from the core
-
Splitted the gem into 3 internal gems:
- The core pagination logic (kaminari-core)
- Active Record adapter (kaminari-activerecord)
- Action View adapter (kaminari-actionview)
-
Removed deprecated
num_pages
API in favor oftotal_pages
-
Deprecated
-e haml
and-e slim
options for the views generator -
Renamed the model class method for configuring
max_pages
frommax_pages_per
tomax_pages
Enhancements:
-
Exposed
path_to_prev_page
,path_to_next_page
helpers as public API #683 [@neilang] -
Added
--views_prefix
option for the views generator #668 [@antstorm] -
Added
max_paginates_per
scope method to overwrite modelmax_paginates_per
config #754 [@rubyonme] -
Added
:paginator_class
option to specify a custom Paginator forpaginate
#740 [@watsonbox] -
Use I18n to pluralize entries in
page_entries_info
#694 [@Linuus] -
Added
without_count
#681 [@bryanrite] -
Omit select count query for
total_count
if it's calculable in Ruby level from loaded records
Bug Fixes:
-
Fixed a bug that a single page gap was displayed as "…"
before: ‹ 1 2 … 4 5 [6] 7 8 … 15 16 › after: ‹ 1 2 3 4 5 [6] 7 8 … 15 16 ›
-
Fixed a bug where
paginate
changes request.format #540 [@jasonkim] -
Fixed a bug where
per(nil)
didn't respectmax_per_page
configuration #800 [@jonathanhefner] -
Fixed a bug that model class'
max_paginates_per
was ignored when it's smaller than the defaultper_page
-
Preserve source location of the pagination method #812 [@ka8725]
-
Preserve source location of the tag helpers
-
Hide Next & Last buttons if page is out of range #712 [@igorkasyanchuk]
-
Always buffer with
ActionView::OutputBuffer
if Action View is loaded #804 [@onemanstartup]