Changelog History
Page 2
-
v0.17.0 Changes
November 14, 2016๐ Rails 5 ready!
๐ Mongoid 5.0 support
โฌ๏ธ Dropped Ruby 1.8 support
โฌ๏ธ Dropped Mongoid 2.x support
๐ Extracted Sinatra support to kaminari-sinatra gem
๐ Extracted DataMapper support to kaminari-data_mapper gem
๐ Extracted Mongoid support to kaminari-mongoid gem
๐ Extracted MongoMapper support to kaminari-mongo_mapper gem
Deprecated
Kaminari::PageScopeMethods#num_pages
in favor oftotal_pages
Deprecated
:num_pages
option forpaginate
in favor of:total_pages
๐ Fixed mangled params in pagination links on Rails 5 #766 [@audionerd]
๐ Fixed a bug where the range of the records displayed on the last page doesn't match #718 [@danzanzini]
-
v0.16.3 Changes
November 14, 2016 -
v0.16.2 Changes
๐ Fixed a bug where cloned Relations remember previous relations'
@total_count
value #565 [@inkstak]Fixed a bug where
paginate_array()
withtotal_count
option returns whole array for every page #516 [@abhichvn]๐ Fixed a bug where
:num_pages
option was backwards-incompatible #605 [@klebershimabuku]๐ Fixed a bug where themed views generator attempts to overwrite README.md #623 [@swrobel]
๐ Fixed a bug that ruby raises a NameError when theme was not found #622 [@maxprokopiev]
๐ Fixed a bug that
paginates_per
does not work with subclasses on mongoid #634 [@kouyaf77]๐ Show an error message if a proper template was not found for the generator theme #600 [@meltedice]
-
v0.16.1 Changes
- ๐ Fix a bug where
:theme
option for #paginate method doesn't work properly #566 [@commstratdev]
- ๐ Fix a bug where
-
v0.16.0 Changes
โ Add support for mongoid
max_scan
option #500 [@aptx4869]Add
link_to_previous_page
helper for Sinatra #504 [@ikeay]โ Add
:views_prefix
option to#paginate
for alternative views directory #552 [@apotonick]Simplify
page_entries_info
by addingentry_name
interface to each ORMRefer ActiveRecord::Base from top level namespace for more safety when inherited class's namespace has
ActiveRecord
constant #522 [@yuroyoro]๐ Fix a bug where runtime persistence not taken into account with mongoid/kaminari #326 [@nubeod]
๐ Fix a bug where helper methods were not available from inside
paginator.render do ... end
block #239 [@damien-roche]๐ Fix a bug where theme generator didn't work on Rails 4.1 #526 [@jimryan]
๐ Fix a bug that paginatable arrays with
total_count
option always returns whole array #516 [@abhichvn]
-
v0.15.1 Changes
page_method_name
option was not working in 0.15.0 #481 [@mauriciopasquier]๐ Use the mongoid criteria #length method to cache the count of the collection per criteria #484 [@camallen]
Don't inherit
host
,port
, andprotocol
from the given params
-
v0.15.0 Changes
๐ Allow
count
,total_count
to pass parameters to super #193 [@bsimpson]Add
max_pages
andmax_pages_per
methods to limit displayed pages per model or globally #301 [@zpieslak]โ Add support for Sinatra views overrides (add app views paths) #332 [@j15e]
๐ Fix wrong pagination when used with
padding
#359 [@vladimir-vg, @negipo]๐ check for Hash in addition to OrderedHash, which seems to break in Rails 4, for total_count #369 [@aew]
๐ Make
to_s
in paginator threadsafe #374 [@bf4]๐ Fix Missing partial Error when
paginate
called from different format template #381 [@joker1007]Add
PageScopeMethods#next_page
,prev_page
, andout_of_range?
[@yuki24]๐ Use
html_safe
in view partials instead ofraw
fixed #73 [@zzak]๐ Fix a bug that
PaginatableArray#total_pages
returns the wrong value #416 [@yuki24]Make
num_pages
to return the same value astotal_pages
for backward compat [@yuki24, @eitoball]Change
#page_entries_info
to use model name #340, #348 [@znz, @eitoball]๐ Change scope to class method #433 [@kolodovskyy]
๐ Fix arity problem with Rails 4.1.0 #449 [@bricker]
-
v0.14.1 Changes
๐ Changed the default "truncation" String from "..." to "…" #264 [@pjaspers]
The theme generator is Github API v3 compatible now! #279 [@eitoball]
Made
Kaminari.config.default_per_page
changeable again #280 [@yuki24]
-
v0.14.0 Changes
๐ Grape framework support! #218 [@mrplum]
Mongoid 3 ready! #238 [@shingara]
Added
link_to_previous_page
helper #191 [@timgremore]โ Added helper to generate rel="next" and rel="prev" link tags for SEO #200 [@joe1chen]
Added
max_per_page
configuration option #274 [@keiko0713]
This would be useful for the case when you are using user input
per_page
value but want to impose the upper bound.Added I18n to
page_entries_info
#207 [@plribeiro3000]Changed method name
num_pages
tototal_pages
num_pages
is still available as an alias oftotal_pages
, but will be deprecated or removed in some future version.Changed the way
page_entries_info
behave so it can show appropriate names for models with namespace #207 [@plribeiro3000]Added
html_safe
topage_entries_info
helper #190 [@lucapette]๐ Fixed displayed number of items on each page w/ Mongoid 2.4.x and MongoMapper #194 [@dblock]
โ Removed an unused local variable from templates from default template #245 [@juno]
Fixed
page_entry_info
to use the value ofentry_name
option when given collection is empty or a PaginatableArray #265, #277 [@eitoball]โ Added require 'dm-aggregates' in DataMapper hook #259 [@shingara]
-
v0.13.0 Changes
๐ Rails 3.2 ready! #180 [@slbug]
๐ DataMapper support! #149 [@NoICE, @Ragmaanir]
๐ Sinatra & Padrino support! #179 [@udzura, @mlightner, @aereal]
โ Added mongoid embedded documents support! #155 [@yuki24]
Added
each_relevant_page
that only visits pages in the inner or outer windows. Performance improved, particularly with very large number of pages. #154 [@cbeer]๐ Memoize count for AR when calling
total_count
. Increases performance for large datasets. #138 [@sarmiena]Added
page_entries_info
view helper #140 [@jeffreyiacono]<%= page_entries_info @posts %> #=> Displaying posts 6 - 10 of 26 in total
Added
link_to_next_page
helper method that simply links to the next page<%= link_to_next_page @posts, 'More' %> #=> <a href="/posts?page=7" rel="next">More</a>
Let one override the
rel
attribute forlink_to_next_page
helper #177 [@webmat]โ Added
total_count
param for PaginatableArray. Useful for when working with RSolr #141 [@samdalton]๐ Changed
Kaminari.paginate_array
API to take a Hashoptions
And specifying :limit & :offset immediately builds a pagination ready object# the following two are equivalent. Use whichever you like Kaminari.paginate_array((1..100).to_a, limit: 10, offset: 10) Kaminari.paginate_array((1..100).to_a).page(2).per(10)
โ Added
padding
method to skip an arbitrary record count #60 [@aaronjensen]User.page(2).per(10).padding(3) # this will return users 14..23
๐ง Made the pagination method name (defaulted to
page
) configurable #57, #162# you can use the config file and its generator for this Kaminari.config.page_method_name = :paging Article.paging(3).per(30)
๐ Only add extensions to direct descendents of ActiveRecord::Base #108 [@seejohnrun]
AR models that were subclassed before Kaminari::ActiveRecordExtension is included pick up the extensions #119 [@pivotal-casebook]
Avoid overwriting AR::Base inherited method #165 [@briandmcnabb]
๐ Stopped depending on Rails gem #159 [@alsemyonov]
๐ท introduced Travis CI #181 [@hsbt]