2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2015-10-20 08:48:43 +00:00
|
|
|
class Report::Profile < ApplicationModel
|
|
|
|
self.table_name = 'report_profiles'
|
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
|