Browse Source

Fix performance by not looping through answer options from DB unnecessarily

pull/692/head
baarkerlounger 3 years ago
parent
commit
efbb0d7240
  1. 6
      app/models/form/setup/questions/created_by_id.rb
  2. 6
      app/models/form/setup/questions/owning_organisation_id.rb

6
app/models/form/setup/questions/created_by_id.rb

@ -39,4 +39,10 @@ class Form::Setup::Questions::CreatedById < ::Form::Question
def derived? def derived?
true true
end end
private
def selected_answer_option_is_derived?(_case_log)
false
end
end end

6
app/models/form/setup/questions/owning_organisation_id.rb

@ -39,4 +39,10 @@ class Form::Setup::Questions::OwningOrganisationId < ::Form::Question
def derived? def derived?
true true
end end
private
def selected_answer_option_is_derived?(_case_log)
false
end
end end

Loading…
Cancel
Save