Sha256: 4929e5166e65f30aa9d042125210714ebce66a03e74c6dc5066bce7e972be6f3
Contents?: true
Size: 310 Bytes
Versions: 4
Compression:
Stored size: 310 Bytes
Contents
module SearchObject module Plugin module WillPaginate include Paging def self.included(base) base.extend Paging::ClassMethods end private def apply_paging(scope) scope.paginate per_page: per_page, page: page.zero? ? nil : page end end end end
Version data entries
4 entries across 4 versions & 1 rubygems