intridea/grape — Issue #89: Entity exposures aren't inherited
Author: evansj
Created: 2011-12-02 17:04:49+00:00
State: open

If I have a base class like this:

```ruby
module Entities
class Base < Grape::Entity
expose :id, :errors
end
end
```

and a subclass like this:

```ruby
module Entities
class User < Entities::Base
expose :name
end
end
```

then unfortunately the exposures in User aren't inherited from Base:

```ruby
Entities::User.exposures # => {:name=>{}}
```

It would be great if they did inherit, so I could factor out some common exposures.