From ab3b68904595efe64126161b75b7da633bd8a692 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Thu, 29 May 2014 16:44:23 -0400 Subject: [PATCH] move line to proper place --- app/models/amazon_copy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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