profile.rb 301 B

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