jcasimir/draper — Issue #121: Inherit :allows and :denies options
Author: haihappen
Created: 2012-01-30 11:09:35+00:00
State: open

Is there any way to inherit the `:allows` and `:denies` options from a parent decorator?

Assuming I have following `ApplicationDecorator`:

```ruby
class ApplicationDecorator < Draper::Base
allows :id, :name
end
```

It is possible for an `UserDecorator` to inherit the `:allows`?

```ruby
class UserDecorator < ApplicationDecorator
allows :firstname, :lastname
end

UserDecorator.allowed
# => [:id, :name, :firstname, :lastname]
```
```