Skip to content

Commit

Permalink
Fix filename
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jul 3, 2017
1 parent 118b183 commit dca8d54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/active_file/blob.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -29,7 +30,8 @@ def key
end

def filename
Filename.new(filename)
ActiveFile::Filename.new(self[:filename])
end
end


Expand Down

0 comments on commit dca8d54

Please sign in to comment.