1 2 3 4 5 6 7 8
class Rating < ActiveRecord::Base belongs_to :comment has_many :taggings, :as => :taggable end class SpecialRating < Rating belongs_to :special_comment end