Sha256: 5da5ca6593c20a76e59bfffec4174af817614e501d0aeba776f0b2993afbd18b
Contents?: true
Size: 517 Bytes
Versions: 20
Compression:
Stored size: 517 Bytes
Contents
require 'forwardable' module Plucky module Pagination module Decorator extend Forwardable def_delegators :@paginator, :total_entries, :total_pages, :current_page, :per_page, :previous_page, :next_page, :skip, :limit, :offset, :out_of_bounds? def paginator(p=nil) return @paginator if p.nil? @paginator = p self end end end end
Version data entries
20 entries across 20 versions & 2 rubygems