tickit-project/tickit — pull request #39 by jameshalsall (2013-10-17 12:02:22+00:00)
Title: [WIP] Adding domain object collection decorator to ease object decoration

Currently in the controllers we have to iterate over an array of domain objects, calling `decorate` on the decorator provided, but this is repetitive and unnecessary.

This PR adds a collection decorator, which decorates a collection (array) of domain objects in a single method call.

Fixes #38

TODO:

- [x] Create implementation for the collection decorator
- [ ] Replace decorator logic in controllers with the new collection decorator