update inventory and shop and seed
This commit is contained in:
@@ -3,7 +3,7 @@ module LoginVerification
|
||||
|
||||
included do
|
||||
before_action :authenticate_session_token
|
||||
helper_method :current_company, :current_login_employee, :current_user, :get_cashier, :order_reservation, :bank_integration
|
||||
helper_method :current_company,:current_shop, :current_login_employee, :current_user, :get_cashier, :order_reservation, :bank_integration
|
||||
end
|
||||
|
||||
#this is base api base controller to need to inherit.
|
||||
@@ -17,6 +17,14 @@ module LoginVerification
|
||||
end
|
||||
end
|
||||
|
||||
def current_shop
|
||||
begin
|
||||
return Shop.first
|
||||
rescue
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
def current_login_employee
|
||||
@employee = Employee.find_by_token_session(session[:session_token])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user