diff options
| -rw-r--r-- | app/controllers/admin/photos_controller.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/controllers/admin/photos_controller.rb b/app/controllers/admin/photos_controller.rb index 793c4508..b730ba30 100644 --- a/app/controllers/admin/photos_controller.rb +++ b/app/controllers/admin/photos_controller.rb @@ -18,19 +18,5 @@ module Admin ReProcessPhotoJob.perform_later(@photo_repository.find(params[:id])) redirect_to admin_photos_path end - - private - - def move_to_temporary_storage(temp_file_path, original_filename) - "#{create_tmp_dir}/#{original_filename}".tap do |new_path| - FileUtils.mv(temp_file_path, new_path) - end - end - - def create_tmp_dir - Rails.root.join("tmp/uploads/#{SecureRandom.uuid}").tap do |directory| - system "mkdir -p #{directory}" - end - end end end |
