Sha256: 316d44dec5dbf856370d2053a9d4950fed98925b84b53bce8120f70829e4bae9

Contents?: true

Size: 261 Bytes

Versions: 18

Compression:

Stored size: 261 Bytes

Contents

class SpudMenu < ActiveRecord::Base
	validates :name,:presence => true
	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

18 entries across 18 versions & 1 rubygems

Version Path
spud_cms-0.8.0 app/models/spud_menu.rb
spud_cms-0.7.2 app/models/spud_menu.rb
spud_cms-0.7.1 app/models/spud_menu.rb
spud_cms-0.7.0 app/models/spud_menu.rb
spud_cms-0.4.8 app/models/spud_menu.rb
spud_cms-0.4.7 app/models/spud_menu.rb
spud_cms-0.4.6 app/models/spud_menu.rb
spud_cms-0.4.5 app/models/spud_menu.rb
spud_cms-0.4.4 app/models/spud_menu.rb
spud_cms-0.4.3 app/models/spud_menu.rb
spud_cms-0.4.0 app/models/spud_menu.rb
spud_cms-0.3.7 app/models/spud_menu.rb
spud_cms-0.3.6 app/models/spud_menu.rb
spud_cms-0.3.4 app/models/spud_menu.rb
spud_cms-0.3.3 app/models/spud_menu.rb
spud_cms-0.3.2 app/models/spud_menu.rb
spud_cms-0.3.1 app/models/spud_menu.rb
spud_cms-0.3.0 app/models/spud_menu.rb