Sha256: 48fb2e681b14b4da882cbf0233f7c9ec65eb72a9e95b0b4976c0a5034169fc3d
Contents?: true
Size: 426 Bytes
Versions: 5
Compression:
Stored size: 426 Bytes
Contents
module Trailblazer class Finder module Adapters module Sequel # Sequel - Paging Adapter module Paging def self.included(base) base.extend Features::Paging::ClassMethods end private def apply_paging(entity_type) entity_type.limit(per_page).offset(([page, 1].max - 1) * per_page) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems