replace @shop and shop_details with current_shop
This commit is contained in:
@@ -2,7 +2,7 @@ module LoginVerification
|
||||
extend ActiveSupport::Concern
|
||||
included do
|
||||
before_action :authenticate_session_token
|
||||
helper_method :current_company, :current_login_employee, :current_user, :get_cashier, :order_reservation, :bank_integration, :shop_detail
|
||||
helper_method :current_company, :current_login_employee, :current_user, :get_cashier, :order_reservation, :bank_integration, :current_shop
|
||||
end
|
||||
|
||||
#this is base api base controller to need to inherit.
|
||||
@@ -30,9 +30,9 @@ module LoginVerification
|
||||
end
|
||||
|
||||
#Shop Name in Navbor
|
||||
def shop_detail
|
||||
@shop ||= current_shop
|
||||
end
|
||||
# def shop_detail
|
||||
# @shop ||= current_shop
|
||||
# end
|
||||
|
||||
#check order reservation used
|
||||
def order_reservation
|
||||
|
||||
Reference in New Issue
Block a user