# -*- encoding : utf-8 -*-
class Block < ActiveRecord::Base
  

  belongs_to :blockable, :polymorphic => true
  
  has_many :portlets, :order => :position, :dependent => :destroy
  accepts_nested_attributes_for :portlets


has_many :allowed_block_contents

has_many :content_types, :through => :allowed_block_contents
end
