addons.rb 438 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SystemReport::Plugin::Addons < SystemReport::Plugin
  3. DESCRIPTION = __('List of installed addons').freeze
  4. def fetch
  5. ::Package.all.map do |package|
  6. package.attributes.delete_if do |k|
  7. k.in? %w[
  8. id
  9. created_at
  10. updated_at
  11. created_by_id
  12. updated_by_id
  13. ]
  14. end
  15. end
  16. end
  17. end