⚡ A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Ruby webapps
path_to_next_url
helper that was accidentally deleted in v1.2.0 #1027 [@ryym]rel_next_prev_link_tags
helper #1045 [@dlackty]current_per_page
in favor of limit_value
#url_to_next_page
and #url_to_prev_page
helper methods: 38e95a2
Kaminari::Helpers::UrlHelper
: ff38bee
total_count
for grouped queries by explicitly giving SQL select
clause #979 [@MmKolodziej]LIMIT
to total_count
query when max_pages
presents #981 [@rymai]kaminari-mongoid
gem was not loaded properly: kaminari/kaminari-mongoid#9 [@DenniJensen]#total_count
method incorrectly calculates the total count: #932 [@tumayun]empty?
breaks subsequent last_page?
in without_count mode #1009 [@montdidier]page_entries_info
method respects the I18n.locale
value when pluralizing the entry_name
option #899 [@hundred]require 'kaminari/core'
is no longer necessary when using require 'kaminari/activerecord'
#896 [@yhara]#current_per_page
method to inspect current value of per_page
#875 [@bfad]rails g kaminari:views ...
stopped working due to a missing require #912 [@jvsoares]params
to the link_to_next_page
or link_to_previous_page
method raises an exception #874 [@5t111111]Added required_ruby_version
to the gemspec #847 [@timoschilling]
Fixed a regression where per(nil)
uses max_per_page
instead of default_per_page
#813 [@merqlove]
Fixed a regression where passing a String to per()
aborts with ArgumentError #849 [@rafaelgonzalez]
Fixed a bug where calling deprecated max_pages_per
caused an Error on Rails 4 #852 [@tsuwatch]
For breaking changes and enhancements, please refer to the release notes for the version 1.0.0.beta1.
Fixed padding()
not to accept negative value #839 [@yo-gen]
Fixed a bug where total_count
used to return a wrong value with larger page value than total pages in without_count
mode #845 [@denislins]
Coerce padding()
argument to Integer #840 [@pablocrivella]
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:
Removed deprecated num_pages
API in favor of total_pages
Deprecated -e haml
and -e slim
options for the views generator
Renamed the model class method for configuring max_pages
from max_pages_per
to max_pages
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 model max_paginates_per
config #754 [@rubyonme]
Added :paginator_class
option to specify a custom Paginator for paginate
#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
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 respect max_per_page
configuration #800 [@jonathanhefner]
Fixed a bug that model class' max_paginates_per
was ignored when it's smaller than the default per_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]