Files
nairobi/app/models/report.rb
Javi Martín 1c2e38ea00 Use metaprogramming for report methods
We're going to add an `advanced_stats` report, and having 3 identical
sets of methods would be too much duplication.
2019-05-22 11:50:03 +02:00

6 lines
107 B
Ruby

class Report < ApplicationRecord
KINDS = %i[results stats]
belongs_to :process, polymorphic: true
end