collection_checklist_template.rb 364 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module SessionHelper::CollectionChecklistTemplate
  3. module_function
  4. def session(collections, assets, _user)
  5. collections[ ChecklistTemplate.to_app_model ] = []
  6. ChecklistTemplate.all.each do |item|
  7. assets = item.assets(assets)
  8. end
  9. [collections, assets]
  10. end
  11. end