2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2015-10-20 08:48:43 +00:00
|
|
|
class Report::Profile < ApplicationModel
|
|
|
|
self.table_name = 'report_profiles'
|
2021-10-01 19:23:20 +00:00
|
|
|
include ChecksConditionValidation
|
2020-06-22 09:57:45 +00:00
|
|
|
validates :name, presence: true
|
2015-10-20 08:48:43 +00:00
|
|
|
store :condition
|
|
|
|
|
|
|
|
def self.list
|
|
|
|
where(active: true)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|