Browse Source

Remove N+1 query on scheme and location answer option lookup

pull/711/head
baarkerlounger 3 years ago
parent
commit
374fa0da0e
  1. 4
      app/models/form/setup/questions/location_id.rb
  2. 4
      app/models/form/setup/questions/scheme_id.rb

4
app/models/form/setup/questions/location_id.rb

@ -35,4 +35,8 @@ private
def supported_housing_selected?(case_log)
case_log.needstype == 2
end
def selected_answer_option_is_derived?(_case_log)
false
end
end

4
app/models/form/setup/questions/scheme_id.rb

@ -37,4 +37,8 @@ private
def supported_housing_selected?(case_log)
case_log.needstype == 2
end
def selected_answer_option_is_derived?(_case_log)
false
end
end

Loading…
Cancel
Save