remove auto gen for menu

This commit is contained in:
Yan
2017-07-12 10:39:23 +06:30
parent c88248281c
commit 762db6bff9
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
class MenuCategory < ApplicationRecord
before_create :generate_menu_category_code
# before_create :generate_menu_category_code
belongs_to :menu
has_many :children, :class_name => "MenuCategory", foreign_key: "menu_category_id"

View File

@@ -1,6 +1,6 @@
class MenuItem < ApplicationRecord
before_create :generate_menu_item_code
# before_create :generate_menu_item_code
belongs_to :menu_category, :optional => true
has_many :menu_item_instances

View File

@@ -1,6 +1,6 @@
class MenuItemInstance < ApplicationRecord
belongs_to :menu_item
before_create :generate_menu_item_instance_code
# before_create :generate_menu_item_instance_code
def self.findParentCategory(item)
if item.menu_category_id