#778: remove unnecessary code

This commit is contained in:
Vokhmin Alexey V 2012-12-17 18:50:09 +04:00
parent c159146048
commit eaa26db89a
2 changed files with 1 additions and 3 deletions

View File

@ -216,6 +216,7 @@ class Project < ActiveRecord::Base
packages = packages.scoped_to_arch(arch.id).
includes(:packages).last(10).
map{ |bl| bl.packages.pluck(:fullname) }.flatten
next if packages.empty?
Resque.push(
"publish_build_list_container_#{type}_worker",
'class' => "AbfWorker::PublishBuildListContainer#{type.capitalize}Worker",

View File

@ -5,10 +5,7 @@ class ProjectToRepository < ActiveRecord::Base
delegate :path, :to => :project
after_create lambda { project.xml_rpc_create(repository) }, :unless => lambda {Thread.current[:skip]}
after_destroy lambda { project.destroy_project_from_repository(repository) }
# after_destroy lambda { project.xml_rpc_destroy(repository) }, :unless => lambda {Thread.current[:skip]}
# after_rollback lambda { project.xml_rpc_destroy(repository) rescue true if new_record? }
validate :one_project_in_platform_repositories