gregbell/active_admin — Issue #1079: Decorators
Author: amiel
Created: 2012-02-27 23:59:39+00:00
State: open

Hello,

I use the [draper](https://github.com/jcasimir/draper) gem a lot and I frequently end up doing this sort of thing:

``` ruby
show do
# Instead of:
attributes_table :name, :week_day, :description

# We must do this:
panel I18n.t('active_admin.details', :model => active_admin_config.resource_name) do
attributes_table_for resource.decorator, :name, :week_day, :description
end
end
```

I keep on thinking of adding some automatically-use-the-decorator-if-it-is-present code and before I consider making a pull request I'm wondering if other people use decorators in this way and if this feature would be appreciated upstream.

This isn't a request for anyone else to implement this, I'll be happy to do it, I just want to know if there's interest.