Commit ba8bdeec

mo k <mo@mokhan.ca>
2012-10-11 03:15:49
remove usage of 'index' variable that does not exist.
1 parent 8262fed
Changed files (1)
app
app/models/creation.rb
@@ -35,12 +35,12 @@ class Creation < ActiveRecord::Base
   end
 
   def migrate_primary_image
-      puts "#{index}. processing #{name}"
+      puts "processing #{name}"
       photo = photos.build({:is_primary => true})
       photo.created_at = created_at
       photo.updated_at = updated_at
       photo.image = image.file
       photo.save!
-      puts "#{index}. migrated #{image.url} to #{photo.attributes}"
+      puts "migrated #{image.url} to #{photo.attributes}"
   end
 end