shop_detail func: update in base
This commit is contained in:
@@ -7,7 +7,7 @@ class BaseOrigamiController < ActionController::Base
|
||||
#before_action :check_installation
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
helper_method :shop_detail, :current_token
|
||||
helper_method :current_token
|
||||
|
||||
rescue_from CanCan::AccessDenied do |exception|
|
||||
flash[:warning] = exception.message
|
||||
@@ -38,11 +38,6 @@ class BaseOrigamiController < ActionController::Base
|
||||
@cashier = Employee.where("role = 'cashier' AND token_session <> ''")
|
||||
end
|
||||
|
||||
#Shop Name in Navbor
|
||||
def shop_detail
|
||||
@shop = Shop.first
|
||||
end
|
||||
|
||||
#check webview
|
||||
def check_mobile
|
||||
status = false
|
||||
|
||||
Reference in New Issue
Block a user