profile.rb 193 B

12345678910
  1. class Report::Profile < ApplicationModel
  2. self.table_name = 'report_profiles'
  3. validates :name, presence: true
  4. store :condition
  5. def self.list
  6. where(active: true)
  7. end
  8. end