diff --git a/app/presenters/supergroups/guidance_and_regulation.rb b/app/presenters/supergroups/guidance_and_regulation.rb index 5336ca047..a875bcd52 100644 --- a/app/presenters/supergroups/guidance_and_regulation.rb +++ b/app/presenters/supergroups/guidance_and_regulation.rb @@ -15,7 +15,7 @@ def tagged_content(taxon_id) def guide?(document) # Although answers and guides are 2 different document types, they are conceptually the same so # we should treat them the same - document.content_store_document_type == "guide" || document.content_store_document_type == "answer" + %w[guide answer].include?(document.content_store_document_type) end def format_document_data(documents)