search_index.rb 416 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Checklist
  3. module SearchIndex
  4. extend ActiveSupport::Concern
  5. def search_index_attribute_lookup(include_references: true)
  6. attributes = super
  7. attributes['items'] = items.map do |item|
  8. item.search_index_attribute_lookup(include_references: include_references)
  9. end
  10. attributes
  11. end
  12. end
  13. end