lib/zen/package/menus/lib/menus/model/menu_item.rb in zen-0.2.4.1 vs lib/zen/package/menus/lib/menus/model/menu_item.rb in zen-0.2.5

- old
+ new

@@ -1,9 +1,9 @@ #:nodoc: module Menus #:nodoc: - module Models + module Model ## # Model used for managing individual menu items in a group. # This model uses the following plugins: # # * tree @@ -11,9 +11,12 @@ # @author Yorick Peterse # @since 0.2a # class MenuItem < Sequel::Model plugin :tree, :order => :order + + many_to_one :menu , :class => 'Menus::Model::Menu' + many_to_one :parent, :class => self ## # Specifies all validation rules that will be used when creating or updating a # menu item. #