menu and menu item categories

This commit is contained in:
Min Zeya Phyo
2017-04-15 17:33:45 +06:30
parent 355f4fadb0
commit 63c5c97f24
24 changed files with 303 additions and 39 deletions

View File

@@ -4,7 +4,9 @@ class Api::Restaurant::MenuController < Api::ApiController
# Pull the default menu details and also other available (active) menus
# Input Params - order_id
def index
@menu = menu_detail()
@menus = Menu.all
@current_menu = Menu.current_menu
end
#Description
@@ -22,8 +24,7 @@ class Api::Restaurant::MenuController < Api::ApiController
menu = Menu.find_by_id(menu_id)
return menu
else
#Pull Default menu
Menu.current_menu
end
end