#778: remove unnecessary code
This commit is contained in:
parent
c159146048
commit
eaa26db89a
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue