update addorder available and max qty
This commit is contained in:
@@ -9,6 +9,7 @@ class MenuCategory < ApplicationRecord
|
||||
validates_presence_of :name, :menu, :order_by
|
||||
|
||||
default_scope { order('order_by asc') }
|
||||
scope :active, -> {where("is_available = 1")}
|
||||
|
||||
def self.destroyCategory(menu_category)
|
||||
# find the sub menu item of current item
|
||||
|
||||
Reference in New Issue
Block a user