update login_verification

This commit is contained in:
Thein Lin Kyaw
2020-01-13 16:41:09 +06:30
parent 3088aa3016
commit 98d88218f2
2 changed files with 3 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ module LoginVerification
extend ActiveSupport::Concern
included do
before_action :authenticate_session_token
helper_method :current_company, :current_shop, :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, :shop_detail
end
#this is base api base controller to need to inherit.

View File

@@ -2,9 +2,8 @@ class Shop < ApplicationRecord
#ShopDetail = Shop.current_shop
# Shop Image Uploader
mount_uploader :logo, ShopImageUploader
has_many :display_images
mount_uploader :logo, ShopImageUploader
has_many :display_images
accepts_nested_attributes_for :display_images