diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-08-11 17:46:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-11 17:46:02 -0400 |
commit | 4766b2da0299d520c98b24af7a515ee185a32d22 (patch) | |
tree | dcdce39e8d214fc69725529ab72449bc65a2e842 /activestorage/lib/active_storage | |
parent | 701ab978e5967d832a1688f0c7308e7987596cbc (diff) | |
parent | 4287f089d351804a4b2cc0a6df685b010721157c (diff) | |
download | rails-4766b2da0299d520c98b24af7a515ee185a32d22.tar.gz rails-4766b2da0299d520c98b24af7a515ee185a32d22.tar.bz2 rails-4766b2da0299d520c98b24af7a515ee185a32d22.zip |
Merge pull request #30198 from betesh/activestorage-rack-test-uploaded-file
Activestorage rack test uploaded file
Diffstat (limited to 'activestorage/lib/active_storage')
-rw-r--r-- | activestorage/lib/active_storage/attached.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/attached.rb b/activestorage/lib/active_storage/attached.rb index 07e0d5c3ea..f11b62e744 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, |