amatsuda/active_decorator

Single Table Inheritance

Closed this issue · 2 comments

Hi guys, if I have something like that:

class User < ActiveRecord::Base; end
class Customer < User; end

If I do have a UserDecorator but dont have a CustomerDecorator, shouldn't active_decorator load UserDecorator if my object is a User instance with type="Customer"?

Is it similar to drapergem/draper#468?

Thanks.

@amatsuda Is this something you would accept a patch for?

This feature was implemented in #33 and already available in recent releases. Thanks!