thoughtbot/paperclip — pull request #897 by phene (2012-05-31 07:43:38+00:00)
Title: Adds the ability to retrieve a styled version of a file from the file store.

Since removing Paperclip::Attachment#to_file, it is impossible to retrieve the file contents of a styled attachment after it has been saved to the server. This change adds the AttachmentStyleAdapter, allowing you to use the following code to retrieve a file object for style. Given a Photo with Paperclip

```ruby
user.photo # Paperclip::Attachment
Paperclip.io_adapters(user.photo.styles[:thumb]) # Temporary file containing the 'thumb' version of the photo.
```