10 lines
282 B
Ruby
10 lines
282 B
Ruby
# -*- encoding : utf-8 -*-
|
|
class BlockContent < ActiveRecord::Base
|
|
has_many :portlets, :as => :content, :dependent => :destroy
|
|
has_many :blocks, :as => :blockable, :dependent => :destroy
|
|
|
|
validates :nbr_columns, :presence => true
|
|
|
|
STYLES = []#[["Style 1",1], ["Style 2",2]]
|
|
end
|