replace @shop and shop_details with current_shop

This commit is contained in:
Zin Moe
2020-01-13 17:34:48 +06:30
parent f99defc459
commit a3edbb07fd
48 changed files with 72 additions and 72 deletions

View File

@@ -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