Merge branch 'foodcourt' of gitlab.com:code2lab/SXRestaurant into foodcourt

This commit is contained in:
Myat Zin Wai Maw
2020-02-28 15:25:10 +06:30
4 changed files with 84 additions and 78 deletions

View File

@@ -204,7 +204,7 @@ class HomeController < ApplicationController
shift = ShiftSale.current_open_shift(employee)
if food_court
if !shift.nil?
redirect_to foodcourt_food_court_path
redirect_to foodcourt_food_court_path(:anchor => "")
else
redirect_to new_foodcourt_shift_path
end