Nicolas Bally e4e4463be1 suite
2021-05-15 15:14:41 +02:00

15 lines
324 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