update addorder get menu and sub menu

This commit is contained in:
Aung Myo
2018-04-27 10:39:29 +06:30
parent 9aabed8ad5
commit eb61e94909
4 changed files with 25 additions and 8 deletions

View File

@@ -78,6 +78,14 @@ class MenuCategory < ApplicationRecord
end
end
def get_sub_category
menu_category = MenuCategory.find_by_menu_category_id(self.id)
if menu_category
return true
end
return false
end
private
# def generate_menu_category_code