Module: WillPaginate::Deserializer

Defined in:
lib/will_paginate/deserializer.rb

Overview

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

Find out more in WillPaginate::Deserializer::ClassMethods

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/will_paginate/deserializer.rb', line 9

def self.included(base)
  base.extend ClassMethods
  class << base
    alias_method_chain :instantiate_collection, :collection
    define_method(:per_page) { 30 } unless respond_to?(:per_page)        
  end
end