How does STI work with HABTM?
For instance…let’s say I have the following models
Category < ActiveRecord::Base
Item < ActiveRecord::Base
Product < Item
Deal < Item
Each product or deal can have categories. Would I then setup Item with
has_and_belongs_to_many :categories, then create a table
??? Is there a better way to do it?
Haven’t done this with STI yet - Thanks.