hzamani / acts_as_relation

Multi table Inheritance for rails
http://hzamani.github.com/acts_as_relation/
MIT License
180 stars 58 forks source link

Including a "whole" object in json #76

Closed gearoidoceallaigh closed 10 years ago

gearoidoceallaigh commented 10 years ago

Great gem but I'm trying to return a json representation of a child object that also includes the parent attributes but I can't seem to find how to do it.

When I call "attributes" on the child model it only lists the child-specific attrs - shouldn't this include the parents too?