Module WillPaginate::Finder
In: lib/will_paginate/finder.rb
ArgumentError InvalidPage Array Collection LinkRenderer Scope lib/will_paginate/collection.rb lib/will_paginate/view_helpers.rb Deprecation ViewHelpers VERSION ClassMethods Finder lib/will_paginate/named_scope.rb ClassMethods NamedScope WillPaginate dot/m_8_0.png

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

included  

Classes and Modules

Module WillPaginate::Finder::ClassMethods

Public Class methods

[Source]

    # File lib/will_paginate/finder.rb, line 10
10:     def self.included(base)
11:       base.extend ClassMethods
12:       class << base
13:         alias_method_chain :method_missing, :paginate
14:         # alias_method_chain :find_every,     :paginate
15:         define_method(:per_page) { 30 } unless respond_to?(:per_page)
16:       end
17:     end

[Validate]