Sha256: 88bdd37e4daa43a329dee109438c72c013212e46f80d59eea6d59be4b288a46d

Contents?: true

Size: 227 Bytes

Versions: 3

Compression:

Stored size: 227 Bytes

Contents

module Dust
  class Menu < ActiveRecord::Base
    attr_accessible :desc, :title, :nestable

    has_many :menu_items, :dependent => :destroy

    def active_items
      menu_items.roots.where(:active => true)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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