fixed menu load

This commit is contained in:
NyanLinHtut
2020-02-28 11:02:02 +06:30
parent 1c094d656a
commit 219612a3ee
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