diff --git a/app/controllers/api/restaurant/menu_categories.rb b/app/controllers/api/restaurant/menu_categories.rb deleted file mode 100644 index fe7983ea..00000000 --- a/app/controllers/api/restaurant/menu_categories.rb +++ /dev/null @@ -1,37 +0,0 @@ -class Api::Restaurant::MenuController < Api::ApiController - - #Description - # Pull the default menu details and also other available (active) menus - # Input Params - order_id - def index - @menus = Menu.all - @current_menu = Menu.current_menu - - end - - #Description - # This API show current order details - # Input Params - menu_id - def show - @menu = menu_detail(params[:id]) - end - - - private - def menu_detail (menu_id) - if (menu_id) - #Pull this menu - menu = Menu.find_by_id(menu_id) - return menu - else - Menu.current_menu - end - - end - - def menu_params() - params.permit(:id) - end - - -end diff --git a/app/controllers/api/restaurant/menu_controller.rb b/app/controllers/api/restaurant/menu_controller.rb index fe7983ea..169cc1fd 100644 --- a/app/controllers/api/restaurant/menu_controller.rb +++ b/app/controllers/api/restaurant/menu_controller.rb @@ -1,5 +1,5 @@ class Api::Restaurant::MenuController < Api::ApiController - + skip_before_action :authenticate #Description # Pull the default menu details and also other available (active) menus # Input Params - order_id diff --git a/app/controllers/origami/addorders_controller.rb b/app/controllers/origami/addorders_controller.rb index 68a15c71..e65b24b7 100644 --- a/app/controllers/origami/addorders_controller.rb +++ b/app/controllers/origami/addorders_controller.rb @@ -10,6 +10,7 @@ class Origami::AddordersController < BaseOrigamiController def show @menu = MenuCategory.all + @table_id = params[:id] end private diff --git a/app/views/origami/addorders/show.html.erb b/app/views/origami/addorders/show.html.erb index c4f51c1e..049ba371 100644 --- a/app/views/origami/addorders/show.html.erb +++ b/app/views/origami/addorders/show.html.erb @@ -1,65 +1,42 @@