Commit d92be0d8 by Jon Yurek

Added original_filename and content_type accessors to StringIO

parent 0a1187e3
...@@ -28,7 +28,18 @@ module Paperclip ...@@ -28,7 +28,18 @@ module Paperclip
File.size(self) File.size(self)
end end
end end
end
if defined? StringIO
class StringIO
attr_accessor :original_filename, :content_type
def original_filename
@original_filename ||= "stringio.txt"
end
def content_type
@content_type ||= "text/plain"
end
end
end end
class File #:nodoc: class File #:nodoc:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment