Sha256: 4178e8a8643ad96ac8cd5879b8501d2b60069e3b1fb3ef24958cb972c341aab5

Contents?: true

Size: 403 Bytes

Versions: 77

Compression:

Stored size: 403 Bytes

Contents

class Menu < ActiveRecord::Base
  include Uid
  include Localized if Fullstack::Cms.config.localize

  has_many :links, :as => :link_owner, :dependent => :delete_all, :order=>'position ASC'
  accepts_nested_attributes_for :links, :allow_destroy => true
  
  
  alias_attribute :name, :uid
  def name
    I18n.t("fullstack.cms.menus.#{uid}", :default => uid.to_s.humanize)
  end
  
  timestamps
end





Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
fullstack-cms-0.3.7 app/models/menu.rb
fullstack-cms-0.3.6 app/models/menu.rb
fullstack-cms-0.3.5 app/models/menu.rb
fullstack-cms-0.3.4 app/models/menu.rb
fullstack-cms-0.3.3 app/models/menu.rb
fullstack-cms-0.3.2 app/models/menu.rb
fullstack-cms-0.3.1 app/models/menu.rb
fullstack-cms-0.2.36 app/models/menu.rb
fullstack-cms-0.2.35 app/models/menu.rb
fullstack-cms-0.2.34 app/models/menu.rb
fullstack-cms-0.2.33 app/models/menu.rb
fullstack-cms-0.2.31 app/models/menu.rb
fullstack-cms-0.2.30 app/models/menu.rb
fullstack-cms-0.2.29 app/models/menu.rb
fullstack-cms-0.2.28 app/models/menu.rb
fullstack-cms-0.2.27 app/models/menu.rb
fullstack-cms-0.2.26 app/models/menu.rb
fullstack-cms-0.2.25 app/models/menu.rb
fullstack-cms-0.2.24 app/models/menu.rb
fullstack-cms-0.2.23 app/models/menu.rb