diff --git a/app/models/amazon_copy.rb b/app/models/amazon_copy.rb index 54de682..4e53e49 100644 --- a/app/models/amazon_copy.rb +++ b/app/models/amazon_copy.rb @@ -17,8 +17,9 @@ class AmazonCopy videolisting.on_s3 = true videolisting.save end - end + handle_asynchronously :download_video + def download_file_and_upload_to_s3 url, videocode, extension, prefix file = Tempfile.new ["video_", ".#{extension}"], "#{Rails.root}/tmp" @@ -36,5 +37,4 @@ class AmazonCopy end end - handle_asynchronously :download_video end \ No newline at end of file