mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Revert "Paginatable to Paginable"
This reverts commit 5ef7911c4e
. English is weird.
This commit is contained in:
parent
1f33aacd0b
commit
96aac765bd
1 changed files with 2 additions and 2 deletions
|
@ -42,12 +42,12 @@ module Kaminari
|
|||
# Pro: paginates without casting an extra SELECT COUNT query
|
||||
# Con: unable to know the total number of records/pages
|
||||
def without_count
|
||||
extend ::Kaminari::PaginableWithoutCount
|
||||
extend ::Kaminari::PaginatableWithoutCount
|
||||
end
|
||||
end
|
||||
|
||||
# A module that makes AR::Relation paginatable without having to cast another SELECT COUNT query
|
||||
module PaginableWithoutCount
|
||||
module PaginatableWithoutCount
|
||||
# Overwrite AR::Relation#load to actually load one more record to judge if the page has next page
|
||||
# then store the result in @_has_next ivar
|
||||
def load
|
||||
|
|
Loading…
Reference in a new issue