From 8ccc2fd741446a910280a72c461a5906bc3dca87 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 28 Mar 2014 00:12:04 -0500 Subject: [PATCH] set the right asset id in the rake task :P --- lib/tasks/pet_types.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/pet_types.rake b/lib/tasks/pet_types.rake index eab0be99..464c2db5 100644 --- a/lib/tasks/pet_types.rake +++ b/lib/tasks/pet_types.rake @@ -24,7 +24,7 @@ namespace :pet_types do pet_type.body_id = args[:body_id] # This isn't really a valid image hash, but we can teach PetType to # use this override when reporting its image URLs. - pet_type.image_hash = "a:#{swf_asset.id}" + pet_type.image_hash = "a:#{swf_asset.remote_id}" pet_type.save! puts "Pet type #{pet_type.inspect} created"