I have been struggling for the past few hours thinking about which route I should go. I have a Notification model. Up until now I have used a notification_type column to ma
has_one :details, :class_name => "#{self.class.name}Detail"
doesn't work. self.class.name in the context of a class definition is 'Class' so :class_name is always 'ClassDetail'
So it must be:
has_one :details, :class_name => "#{self.name}Detail"
But very nice idea!