thoughtbot/paperclip — pull request #924 by ylansegal (2012-06-19 20:29:40+00:00)
Title: StringioAdapter no longer allows content_type and original_filename to be set.

My app interacts with a service that provides images as a base64 string inside an xml file (yes, I know, that sounds like fun). I attach said image to my model using paperclip.

Until the last release this was accomplished, without too much trouble by using:

```
sio = StringIO.new(Base64.decode64('base64 String goes here'))
file = Paperclip.io_adapters.for(sio)
file.content_type = 'image/png'
file.original_filename ='my_image.png'
paperclip_model.attachment = file
```

The 49b833a48acd33cca1264ec67f4ede3cfa06081d commit removes the attribute writers in question for StringioAdapter, which broke the functionality.

I added two tests and a quick fix.

Thanks for providing the gem. I use it widely in production.