trabajo-afectivo/app/models/report/profile.rb

11 lines
188 B
Ruby
Raw Normal View History

2015-10-20 08:48:43 +00:00
class Report::Profile < ApplicationModel
self.table_name = 'report_profiles'
validates :name, presence: true
2015-10-20 08:48:43 +00:00
store :condition
def self.list
where(active: true)
end
end