diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-20 21:29:29 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-20 21:29:29 -0700 |
| commit | 89caeeeb255e95258fc258c458ee63a9597cf5df (patch) | |
| tree | 121830887c794f8cdefbbce96452a22058ca78e1 | |
| parent | d988afa81afa7b92b1d8499e73ca96e7751c1b1c (diff) | |
remove unused methods.
| -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 |
