From 728a40658c9c71cadf5b08b793c1d0d6b3f2ba19 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 13 Dec 2012 20:44:00 +0400 Subject: [PATCH] #778: small fix --- lib/abf_worker/runners/repository.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/abf_worker/runners/repository.rb b/lib/abf_worker/runners/repository.rb index c7ccecb89..4aa018ec0 100644 --- a/lib/abf_worker/runners/repository.rb +++ b/lib/abf_worker/runners/repository.rb @@ -15,7 +15,7 @@ module AbfWorker repository_path = platform.path repository_path << '/repository' if platform.personal? - Platform.main.pluck.each do |main_platform_name| + Platform.main.pluck(:name).each do |main_platform_name| create_file_tree "#{repository_path}/#{main_platform_name}", true end else @@ -28,7 +28,7 @@ module AbfWorker repository_path = platform.path repository_path << '/repository' if platform.personal? - Platform.main.pluck.each do |main_platform_name| + Platform.main.pluck(:name).each do |main_platform_name| destroy_repositories "#{repository_path}/#{main_platform_name}" end else