1
0
Fork 0
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:
Yuki Nishijima 2016-12-13 01:06:52 +00:00
parent 1f33aacd0b
commit 96aac765bd

View file

@ -42,12 +42,12 @@ module Kaminari
# Pro: paginates without casting an extra SELECT COUNT query # Pro: paginates without casting an extra SELECT COUNT query
# Con: unable to know the total number of records/pages # Con: unable to know the total number of records/pages
def without_count def without_count
extend ::Kaminari::PaginableWithoutCount extend ::Kaminari::PaginatableWithoutCount
end end
end end
# A module that makes AR::Relation paginatable without having to cast another SELECT COUNT query # 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 # 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 # then store the result in @_has_next ivar
def load def load