current shop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user