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.4.6 app/models/menu.rb
fullstack-cms-0.4.5 app/models/menu.rb
fullstack-cms-0.4.4 app/models/menu.rb
fullstack-cms-0.3.8.fix app/models/menu.rb
fullstack-cms-0.2.32.fix app/models/menu.rb
fullstack-cms-0.4.3 app/models/menu.rb
fullstack-cms-0.4.2 app/models/menu.rb
fullstack-cms-0.4.1 app/models/menu.rb
fullstack-cms-0.3.39 app/models/menu.rb
fullstack-cms-0.3.38 app/models/menu.rb
fullstack-cms-0.3.37 app/models/menu.rb
fullstack-cms-0.3.36 app/models/menu.rb
fullstack-cms-0.3.35 app/models/menu.rb
fullstack-cms-0.3.34 app/models/menu.rb
fullstack-cms-0.3.33 app/models/menu.rb
fullstack-cms-0.3.32 app/models/menu.rb
fullstack-cms-0.3.31 app/models/menu.rb
fullstack-cms-0.3.30 app/models/menu.rb
fullstack-cms-0.3.29 app/models/menu.rb
fullstack-cms-0.3.28 app/models/menu.rb