update settings shops
This commit is contained in:
@@ -57,9 +57,9 @@ class Settings::ShopsController < ApplicationController
|
||||
delete_path = Rails.root.join("public/#{audio_data}")
|
||||
if File.exists?(delete_path)
|
||||
|
||||
File.delete(delete_path)
|
||||
end
|
||||
end
|
||||
File.delete(delete_path)
|
||||
end
|
||||
end
|
||||
save_path = Rails.root.join("public/#{current_shop.shop_code}_#{a.original_filename}")
|
||||
File.open(save_path, 'wb') do |f|
|
||||
f.write a.read
|
||||
|
||||
Reference in New Issue
Block a user