trabajo-afectivo/app/models/report/profile.rb
2022-01-01 14:38:12 +01:00

13 lines
301 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class Report::Profile < ApplicationModel
self.table_name = 'report_profiles'
include ChecksConditionValidation
validates :name, presence: true
store :condition
def self.list
where(active: true)
end
end