nathanvda/cocoon — pull request #88 by SebastianEdwards (2012-09-19 10:52:25+00:00)
Title: Allow created objects to be decorated via a callable option.

Was running into some issues with nested partials which call methods on decorated objects. (I was using the draper gem.)

I needed associations created through the `#link_to_add_association` method to be decorated. To that end I added an option to pass in a `Proc` or similar callable object to accomplish this. Test should explain the rest.

As decorators are becoming a more common sight these days there may be other people who will find this useful.