diff options
-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 |