diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-04 18:44:06 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-04 18:44:06 +0200 |
commit | 8dc2542721ed5c0c2f5f44ff408306c7328adce7 (patch) | |
tree | 2b36828bee9eb5270a3f52a2374d313110c99bec /lib | |
parent | 44b8ac48e36672a0b63b225ec19eacc8d64e7e09 (diff) | |
download | rails-8dc2542721ed5c0c2f5f44ff408306c7328adce7.tar.gz rails-8dc2542721ed5c0c2f5f44ff408306c7328adce7.tar.bz2 rails-8dc2542721ed5c0c2f5f44ff408306c7328adce7.zip |
Wait on Marcel for now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/active_file/blob.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/active_file/blob.rb b/lib/active_file/blob.rb index 74fadf5109..d8b9cd07d2 100644 --- a/lib/active_file/blob.rb +++ b/lib/active_file/blob.rb @@ -13,8 +13,9 @@ class ActiveFile::Blob < ActiveRecord::Base class << self def build_after_upload(io:, filename:, content_type: nil, metadata: nil) new.tap do |blob| - blob.content_type = content_type # Marcel::MimeType.for(data, name: name, declared_type: content_type) blob.filename = filename + blob.content_type = content_type + blob.upload io end end |