profile.rb 371 B

12345678910111213141516
  1. # Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/
  2. class Report::Profile < ApplicationModel
  3. self.table_name = 'report_profiles'
  4. include ChecksConditionValidation
  5. include ChecksClientNotification
  6. include Report::Profile::Assets
  7. validates :name, presence: true
  8. store :condition
  9. def self.list
  10. where(active: true)
  11. end
  12. end