Nicolas Bally 1fa250e0e4 Initial
2011-07-15 12:29:09 +02:00

15 lines
322 B
Ruby

# -*- 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