2

Possible Duplicate:
Multi Table Inheritance with rails 3

What is the best way to implement MTI in Rails? I don't want to go deep into it, I just want to use ready gem.

Community
  • 1
  • 1
Konstantin Milyutin
  • 11,946
  • 11
  • 59
  • 85
  • http://stackoverflow.com/questions/5022802/multi-table-inheritance-with-rails-3 – clyfe Dec 11 '11 at 23:46
  • Check out the [`acts_as_relation`](https://github.com/hzamani/acts_as_relation) gem that simulates MTI inheritance through Rails' STI mechanism. Works with Rails 4, too! – gregoltsov Aug 01 '13 at 12:59

1 Answers1

3

It's not a gem, but this blog entry is VERY straightforward and makes sense for 'simulating' MTI with ActiveRecord.

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

andrewpthorp
  • 4,998
  • 8
  • 35
  • 56