classComment<ActiveRecord::Basebelongs_to:postdefself.what_are_you'a comment...'enddefself.search_by_type(q)self.find(:all,:conditions=>["#{QUOTED_TYPE} = ?",q])endendclassSpecialComment<Commentdefself.what_are_you'a special comment...'endendclassVerySpecialComment<Commentdefself.what_are_you'a very special comment...'endend