Sha256: eb1bf9c06d5e0d8dc701ce2e0be997bfa3f58bde6e2fa8a430eb765df705cd4f
Contents?: true
Size: 527 Bytes
Versions: 94
Compression:
Stored size: 527 Bytes
Contents
require 'active_scaffold/paginator' class Paginator # Total number of pages def number_of_pages_with_infinite number_of_pages_without_infinite unless infinite? end alias_method_chain :number_of_pages, :infinite # Is this an "infinite" paginator def infinite? @count.nil? end class Page # Checks to see if there's a page after this one def next_with_infinite? return true if @pager.infinite? next_without_infinite? end alias_method_chain :next?, :infinite end end
Version data entries
94 entries across 94 versions & 4 rubygems