Sha256: a9e57ccd3c2e756884893dd07964ac1aecaafa0d6659b33d8fc172b54e77f696
Contents?: true
Size: 489 Bytes
Versions: 34
Compression:
Stored size: 489 Bytes
Contents
module WillPaginate module PerPage def per_page defined?(@per_page) ? @per_page : WillPaginate.per_page end def per_page=(limit) @per_page = limit.to_i end def self.extended(base) base.extend Inheritance if base.is_a? Class end module Inheritance def inherited(subclass) super subclass.per_page = self.per_page end end end extend PerPage # default number of items per page self.per_page = 30 end
Version data entries
34 entries across 34 versions & 5 rubygems