From 6ca2897278409c2d8bbe5aa784d7038be5144cea Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Wed, 23 Jan 2013 11:29:41 +0000 Subject: [PATCH] Add will_paginate instructions [ci skip] --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f1dc9f6..5822884 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,8 @@ end The `delegate` method used here is the same as that added by [Active Support](http://api.rubyonrails.org/classes/Module.html#method-i-delegate), except that the `:to` option is not required; it defaults to `:source` when omitted. +[will_paginate](https://github.com/mislav/will_paginate) needs you to `delegate :current_page, :per_page, :offset, :total_entries, :total_pages`. + ### Decorating Associated Objects You can automatically decorate associated models when the primary model is decorated. Assuming an `Article` model has an associated `Author` object: