Sha256: 2660b2ca1cadd55b935ae356b0989276747134e2a908ebc617e2ae3bbe11bc54

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

class SpudMenu < ActiveRecord::Base
  include CmsDeprecatedMultisite

	validates :name,:presence => true
	validates_uniqueness_of :name

	has_many :spud_menu_items, :as => :parent, :dependent => :destroy
	has_many :spud_menu_items_combined, :class_name => "SpudMenuItem", :foreign_key => :spud_menu_id, :dependent => :destroy
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tb_cms-1.2.3 app/models/spud_menu.rb
tb_cms-1.2.2 app/models/spud_menu.rb
tb_cms-1.2.1 app/models/spud_menu.rb
tb_cms-1.2.0 app/models/spud_menu.rb
tb_cms-1.2.0.beta3 app/models/spud_menu.rb