Multi Table Inheritance with rails 3

jtesch picture jtesch · Feb 16, 2011 · Viewed 10.6k times · Source

Are there standards or best practices yet when it comes to multi table inheritance in rails 3? So far the best article I could find was:

http://mediumexposure.com/multiple-table-inheritance-active-record/

But even that needed some changes(e.g. moving the requires to an initializer instead of the old /config/environment.rb)

Any better resources / standards?

Answer

Hassan picture Hassan · Jun 12, 2011

For an easy way to do multi-table inheritance take a look at 'acts_as_relation' plugin https://github.com/hzamani/acts_as_relation.