Module WillPaginate::Finder

  1. lib/will_paginate/finder.rb (view online)

A mixin for ActiveRecord::Base. Provides per_page class method and hooks things up to provide paginating finders.

Find out more in WillPaginate::Finder::ClassMethods

Methods

public class

  1. included

Classes and Modules

Module WillPaginate::Finder::ClassMethods

Public class methods

included (base)
[show source]
# File lib/will_paginate/finder.rb, line 10
    def self.included(base)
      base.extend ClassMethods
      class << base
        alias_method_chain :method_missing, :paginate
        # alias_method_chain :find_every,     :paginate
        define_method(:per_page) { 30 } unless respond_to?(:per_page)
      end
    end