Say I have an STI relationship, where Commentable is the super class, and NewsComment is the subclass. In Commentable I have:
attr_accessor :opinionated
def after_initialize
self.opinionated = true
end
And in NewsComment:
attr_accessor :headliner
def after_initialize
self.headliner = true
end
When instantiate NewsComment, the VA self.opinionated is not inherited. Why is that? And how can you "force" NewsComment to inherit from Commentable?