Sha256: bbce264327f82264ef95a500b9beb8067b86169e2c41983974fdd25433485943

Contents?: true

Size: 244 Bytes

Versions: 3

Compression:

Stored size: 244 Bytes

Contents

module Dust
  class Section < ActiveRecord::Base
    belongs_to :page
    attr_accessible :classes, :position, :title
    acts_as_nested_set
    default_scope roots

    validates_presence_of :title
    validates_uniqueness_of :title
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dust-cms-0.0.07 app/models/dust/section.rb
dust-cms-0.0.06 app/models/dust/section.rb
dust-cms-0.0.05 app/models/dust/section.rb