Support for decorating collection for Draper >= 1.0 #5

merged 1 commit into from Mar 13, 2013


None yet
2 participants

johnbintz commented Jan 17, 2013

Draper upgrade to 1.0 left my automatic decorators all messed up. This pull request adds decorates_collection, which requires the class via :with and uses Draper's Decorator.decorate_collection method to do the decoration:

decorates_collection :users, :with => UserDecorator

ohwillie commented Mar 13, 2013

Hi @johnbintz, thanks for submitting this pull request. I haven't been monitoring the project so I gave you direct commit access.


johnbintz commented Mar 13, 2013

Works for me. Merging. I'll do my best to keep up on whatever issues may crop up!

johnbintz merged commit 03e3962 into ohwillie:master Mar 13, 2013


ohwillie commented Mar 13, 2013


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment