You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/app/models/sample.rb

13 lines
402 B

class Sample
attr_reader :school, :academic_year, :category, :measure, :race
def initialize
@school = School.find_by_slug 'milford-high-school'
@academic_year = AcademicYear.last
@category = Category.find_by_category_id '1'
@subcategory = Subcategory.find_by_subcategory_id '1A'
@measure = Measure.find_by_measure_id '1A-ii'
@race = Race.find_by_qualtrics_code 1
end
end