Class: Actions::Candlepin::Product::DeleteUnused
- Defined in:
- app/lib/actions/candlepin/product/delete_unused.rb
Instance Method Summary collapse
Instance Method Details
#plan(organization) ⇒ Object
5 6 7 8 9 |
# File 'app/lib/actions/candlepin/product/delete_unused.rb', line 5 def plan(organization) organization.products.each do |product| plan_action(Candlepin::Product::Destroy, cp_id: product.cp_id) unless product.used_by_another_org? end end |