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
1 changed files with 2 additions and 2 deletions

View File

@ -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