diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-03 20:13:50 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-03 20:13:50 +0200 |
commit | dca8d548b01407d21e660d7f9759d07d67329e07 (patch) | |
tree | b3d8ff9618d14bbade470dbf1cd640d57792498d | |
parent | 118b183be33227c74f63ee6b08a15b9367d29b3e (diff) | |
download | rails-dca8d548b01407d21e660d7f9759d07d67329e07.tar.gz rails-dca8d548b01407d21e660d7f9759d07d67329e07.tar.bz2 rails-dca8d548b01407d21e660d7f9759d07d67329e07.zip |
Fix filename
-rw-r--r-- | lib/active_file/blob.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/active_file/blob.rb b/lib/active_file/blob.rb index 938f6d86b5..5a82edee65 100644 --- a/lib/active_file/blob.rb +++ b/lib/active_file/blob.rb @@ -1,4 +1,5 @@ require "active_file/site" +require "active_file/filename" # Schema: id, key, filename, content_type, metadata, byte_size, checksum, created_at class ActiveFile::Blob < ActiveRecord::Base @@ -29,7 +30,8 @@ class ActiveFile::Blob < ActiveRecord::Base end def filename - Filename.new(filename) + ActiveFile::Filename.new(self[:filename]) + end end |