current shop

This commit is contained in:
Nweni
2019-12-03 13:43:26 +06:30
parent 417d64ecae
commit e0b912bfa0
18 changed files with 98 additions and 111 deletions

View File

@@ -20,11 +20,11 @@ class EmployeeImageUploader < CarrierWave::Uploader::Base
end
def filename
if Shop.current_shop.shop_code.nil?
# if Shop.current_shop.shop_code.nil?
"#{original_filename}" if original_filename.present?
else
# else
"#{Shop.current_shop.shop_code}_#{original_filename}" if original_filename.present?
end
# end
end
# def cache_dir