Project

General

Profile

Revision 720671b8

Added by Ondřej Pražák over 6 years ago

Fixes #13288 - Fix for pattrenfly UI

View differences:

app/models/foreman_pipeline/job_jenkins_project.rb
20 20
    end
21 21

  
22 22
    def remove_orphaned_projects
23
      JenkinsProject.find(:all).map { |p| p.destroy if p.jobs.empty? }
23
      JenkinsProject.all.map { |p| p.destroy if p.jobs.empty? }
24 24
    end
25 25

  
26 26
  end

Also available in: Unified diff