Browse files

Merge pull request #1279 from rin/master

Improve README on recreate_versions! throwing an exception
  • Loading branch information...
2 parents 95e7c28 + b310fbf commit 4fab2b324a2d1846a81459d83af2da698008db7e @bensie bensie committed Dec 2, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0
@@ -448,6 +448,14 @@ User.all.each do |user|
+Note: `recreate_versions!` will throw an exception on records without an image. To avoid this, scope the records to those with images or check if an image exists within the block. If you're using ActiveRecord, recreating versions for a user avatar might look like this:
+User.all.each do |user|
+ user.avatar.recreate_versions! if user.avatar?
## Configuring CarrierWave
CarrierWave has a broad range of configuration options, which you can configure,

0 comments on commit 4fab2b3

Please sign in to comment.