From 4287f089d351804a4b2cc0a6df685b010721157c Mon Sep 17 00:00:00 2001 From: Isaac Betesh Date: Fri, 11 Aug 2017 10:30:41 -0400 Subject: Make activestorage treat Rack::Test::UploadedFile just like ActionDispatch::Http::UploadedFile --- activestorage/lib/active_storage/attached.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/lib') diff --git a/activestorage/lib/active_storage/attached.rb b/activestorage/lib/active_storage/attached.rb index 5ac8ba5377..68881b8ee1 100644 --- a/activestorage/lib/active_storage/attached.rb +++ b/activestorage/lib/active_storage/attached.rb @@ -17,7 +17,7 @@ module ActiveStorage case attachable when ActiveStorage::Blob attachable - when ActionDispatch::Http::UploadedFile + when ActionDispatch::Http::UploadedFile, Rack::Test::UploadedFile ActiveStorage::Blob.create_after_upload! \ io: attachable.open, filename: attachable.original_filename, -- cgit v1.2.3