Browse Source

feat: remove overriding answer_selected? function (#941)

pull/955/head
natdeanlewissoftwire 2 years ago committed by GitHub
parent
commit
d218bfea4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/models/form/lettings/questions/scheme_id.rb

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

@ -33,10 +33,6 @@ class Form::Lettings::Questions::SchemeId < ::Form::Question
!supported_housing_selected?(lettings_log)
end
def answer_selected?(lettings_log, answer)
lettings_log[id] == answer.name || lettings_log[id] == answer.resource
end
private
def supported_housing_selected?(lettings_log)

Loading…
Cancel
Save