Fix "NameError: undefined local variable or method `platform' for ProductBuildList"

This commit is contained in:
Vladimir Sharshov 2012-04-02 21:39:43 +04:00
parent b36e0c284f
commit 431ed14e83
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class ProductBuildList < ActiveRecord::Base
if result == ProductBuilder::SUCCESS if result == ProductBuilder::SUCCESS
return true return true
else else
raise "Failed to create product_build_list #{id} inside platform #{platform.name} tar url #{tar_url} with code #{result}." raise "Failed to create product_build_list #{id} inside platform #{product.platform.name} tar url #{tar_url} with code #{result}."
end end
end end
@ -62,7 +62,7 @@ class ProductBuildList < ActiveRecord::Base
if result == ProductBuilder::SUCCESS if result == ProductBuilder::SUCCESS
return true return true
else else
raise "Failed to destroy product_build_list #{id} inside platform #{platform.name} with code #{result}." raise "Failed to destroy product_build_list #{id} inside platform #{product.platform.name} with code #{result}."
end end
end end
end end