# frozen_string_literal: true class AnnotationReflex < ApplicationReflex include DocumentSearch def render_document_search_results(search_params) search = document_search(search_params) @documents = search.results opts = { is_citing_document: true } morph "tbody#documentSearchResultTable", render(partial: "document_search_results_table", locals: { search_results: @documents, opts: opts }) end end