shop
This commit is contained in:
@@ -169,7 +169,7 @@ class HomeController < ApplicationController
|
||||
|
||||
def destroy
|
||||
# clear in employee session
|
||||
Employee.logout(@shop,session[:session_token])
|
||||
Employee.logout(current_shop,session[:session_token])
|
||||
session[:session_token] = nil
|
||||
# redirect_to root_path
|
||||
render :json => {:status=> "Success", :url => root_path }.to_json
|
||||
|
||||
Reference in New Issue
Block a user