jcasimir/draper — Issue #98: draper doesn't decorate ordered results?
Author: tinyclanger
Created: 2011-12-15 11:17:35+00:00
State: open

If I have

```@articles = ArticleDecorator.all
```
in my controller, Draper works fine. But

```@articles = ArticleDecorator.order('published_at DESC')
```

produces a NoMethod error when trying to call a decorator.

I don't really want to call ArticleDecorator.all and then sort the result set in-app (and the pagination won't work properly in that case, anyway). Is there a way to work around this? (Assuming I'm not just doing something monumentally dumb, of course)