Browse Source

Rubocop fixes

pull/705/head
Stéphane Meny 3 years ago
parent
commit
c9998fe90b
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 3
      app/models/form/setup/questions/scheme_id.rb

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

@ -23,7 +23,8 @@ class Form::Setup::Questions::SchemeId < ::Form::Question
return {} unless case_log.created_by
user_org_scheme_ids = Scheme.select(:id).where(organisation_id: case_log.created_by.organisation_id).map(&:id)
answer_options.select do |k, _v| user_org_scheme_ids.include?(k.to_i)
answer_options.select do |k, _v|
user_org_scheme_ids.include?(k.to_i)
end
end

Loading…
Cancel
Save