diff --git a/lib/tasks/noladex.rake b/lib/tasks/noladex.rake index 8118a7e..afc7dd3 100644 --- a/lib/tasks/noladex.rake +++ b/lib/tasks/noladex.rake @@ -13,7 +13,8 @@ namespace :noladex do desc "Add width and height meta data to the images already uploaded ..." task :reprocess_images => :environment do - User.all.each { |user| user.avatar.reprocess! if user.avatar.exists? } + User.all.each { |user| user.avatar.reprocess! if user.avatar.exists?; user.save! } + end end \ No newline at end of file