profile.rb 376 B

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