I use STI and polymorphisme as following :
class Franchise < Company
has_one :notebook, :as => :notebookable, :dependent => :destroy
class Notebook < ActiveRecord::Base
belongs_to :notebookable, :polymorphic => true
BUT the created notebook record has :notebookable_type = 'Company',
whicj is not right, should be 'Franchise'...
is it correct or should I add another parameter somewhere ?
thanks for your advices..