voxdolo/decent_exposure — pull request #29 by senny (2011-10-12 09:23:17+00:00)
Title: append _collection for uncountable resources

DecentExposure should work with uncountable resources. I made a patch to simply append `_collection` to the collection resource when the resource is uncountable.

```ruby
class SheepController < ApplicationController
expose(:sheep_collection) { Sheep.alive }
expose(:sheep)
end
```

In the example above, the sheep resource will be built with the scope of `sheep_collection`