This commit is contained in:
Nweni
2017-06-04 14:46:00 +06:30
parent aa295c3a12
commit f5b6445a21
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ class MenuItem < ApplicationRecord
belongs_to :parent, :class_name => "MenuItem", foreign_key: "menu_item_id", :optional => true
has_many :children, :class_name => "MenuItem", foreign_key: "menu_item_id"
validates_presence_of :item_code, :type, :min_qty, :taxable, :min_selectable_item, :max_selectable_item
validates_presence_of :item_code, :name, :type, :min_qty, :taxable, :min_selectable_item, :max_selectable_item
default_scope { order('item_code asc') }