filtersquad/rocket_pants — pull request #41 by adamburmister (2012-12-19 14:08:26+00:00)
Title: Added presenter method `attr_expose` to AR

I added a method `attr_expose` to the AR model which allows for easy declaration of attributes to include in the JSON response.

Under the cover it stores a list of attribute names and automatically passes those into the `options[:only]` array when `serializable_hash` is called.

```
class Account < ActiveRecord::Base
attr_expose :full_name, :email
end
```