• Andreas Brandl's avatar
    Use paginate_and_retrieve! for keyset pagination · bfdb6e52
    Andreas Brandl authored
    * API::Helpers::Pagination#paginate only exposes offset pagination
    * API::Helpers::Pagination#paginate_and_retrieve! supports both types
    
    I wanted to make it explicit that keyset pagination returns an array
    instead of a relation. This does not match the behavior of offset
    pagination, hence not mixing those in #paginate.
    bfdb6e52
pagination.rb 1.1 KB