Created
February 13, 2013 13:59
-
-
Save marcusleemitchell/4944795 to your computer and use it in GitHub Desktop.
Wanting to reprocess Host avatars...is this the best solution or is there another way?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.find_in_batches(:conditions => "user_type IN ('host','ghost')") do |user_batch| | |
user_batch.each do |user| | |
user.delay.send(:generate_delayed_image_styles!) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment