class ArticleindexsContent < ActiveRecord::Base belongs_to :category has_one :portlet, :as => :content, :dependent => :destroy end