From cf04814788094969021125118664e008dc83bc7a Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Fri, 15 Feb 2013 09:30:12 +0000 Subject: [PATCH] Reflect changed collection decorator behavior in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32efc2f..f5abcd8 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ end @articles = ArticlesDecorator.decorate(Article.all) ``` -Draper infers the decorator used for each item from the name of the collection decorator (`ArticlesDecorator` implies `ArticleDecorator`). If that fails, it falls back to using each item's `decorate` method. Alternatively, you can specify a decorator by overriding the collection decorator's `decorator_class` method. +Draper decorates each item using its `decorate` method. Alternatively, you can specify a decorator by overriding the collection decorator's `decorator_class` method, or by passing the `:with` option to the constructor. #### Using pagination