diff --git a/app/models/survey_item_response.rb b/app/models/survey_item_response.rb index d6f78153..28dc16a9 100644 --- a/app/models/survey_item_response.rb +++ b/app/models/survey_item_response.rb @@ -13,8 +13,7 @@ class SurveyItemResponse < ActiveRecord::Base has_one :measure, through: :survey_item scope :exclude_boston, lambda { - boston = District.find_by_name('Boston') - where.not(school: boston.schools) if boston.present? + where.not(school: District.boston.schools) if District.boston.present? } scope :averages_for_grade, lambda { |survey_items, school, academic_year, grade|