|
|
|
@ -13,8 +13,7 @@ class SurveyItemResponse < ActiveRecord::Base
|
|
|
|
has_one :measure, through: :survey_item
|
|
|
|
has_one :measure, through: :survey_item
|
|
|
|
|
|
|
|
|
|
|
|
scope :exclude_boston, lambda {
|
|
|
|
scope :exclude_boston, lambda {
|
|
|
|
boston = District.find_by_name('Boston')
|
|
|
|
where.not(school: District.boston.schools) if District.boston.present?
|
|
|
|
where.not(school: boston.schools) if boston.present?
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
scope :averages_for_grade, lambda { |survey_items, school, academic_year, grade|
|
|
|
|
scope :averages_for_grade, lambda { |survey_items, school, academic_year, grade|
|
|
|
|
|