jnicklas/carrierwave — pull request #731 by santaux (2012-05-02 14:38:32+00:00)
Title: Add :versions and :process options to mount_uploader

These options can be added to mount_uploader to initialize custom versions for uploader with specified name and size.

Example:

```
mount_uploader :avatar, PictureUploader,
:versions => {:thumb => [62,62], :default => [128,128]},
```

Hash item with name :default sets the default attachment size. So, into the uploader code above will be translated into:

```
process :resize_to_fit => [128, 128]

version :thumb do
process :resize_to_fit => [62, 62]
end
```

To change process method, set option :process

```
mount_uploader :avatar, PictureUploader,
:versions => {:thumb => [62,62], :default => [128,128]},
:process => :resize_to_fill
```